IonicWind Software

Creative Basic => GUI Programs => Topic started by: GWS on October 17, 2007, 12:33:03 PM

Title: Statusbar Text Alignment
Post by: GWS on October 17, 2007, 12:33:03 PM
This doesn't seem to be covered in the help notes at the moment, so I thought I'd post it here ..  :)

Text in Status Bar panes is by default left aligned.

To Center it, insert a 'Tab' character in the text string as in ..

controlcmd win, 100, @SWSETPANETEXT, 0, chr$(9) + "Status"

This would place the word 'Status' in the center of the first pane of the control .. (panes are zero based)


To Right Align text, insert two 'Tab' characters in the text string as in:

controlcmd win, 100, @SWSETPANETEXT, 0, chr$(9) + chr$(9) + "Status"


all the best, :)

Graham