May 21, 2024, 01:10:25 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Statusbar Text Alignment

Started by GWS, October 17, 2007, 12:33:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

GWS

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


Tomorrow may be too late ..