While you are having fun with the Statusbar

Started by Roger Garstang, June 02, 2004, 03:41:28 PM

Previous topic - Next topic

Roger Garstang

Any plans on a progress bar section?  I was also curious on how you align text since too.  As far as I can tell the statusbar doesn't have it's own options for alignment???  Do you use tabs or something (Just guessing since there were stray tabs before).  Just wondering what happens when I set the text at runtime and it was aligned.  I haven't really played with my code yet cause I'm waiting on the .05 so nothing gets messed up, so I was just reading up on Setting the text and icons on panels.  Might be good to use the icon code I gave you for the app icon on statusbars, etc too unless you already use it.  Since they are %LR_SHARED the handles can be reused and you won't need multiple load statements.  According to the docs there is no cleanup needed, and it actually says when shared not to as windows will expect to find the handles, etc.

TechSupport

ProgressBar in a StatusBar panel. Good idea. I will put it on the list.

(That list sure is growing!)  :mrgreen:

I handle alignment in the panels with simple $TAB's added to the text.
Left align = no tabs
Center = one tab
Right = two tabs

Seems to work okay.

Roger Garstang

Yeah, that is how the example I saw in the PB Forum did it too.  So, I guess if I want to keep the "alignment" then I'll have to put tabs in...sounds good.  Now all I have to do is play with the caps and num lock.  I may make my own check that works with my statusbar already and updates my time to update the status of the keys too.  Then see if I can get the gray text look like Office uses when the OVR/CAPS/NUM goes black for on or gray for off.

Sorry about the ever growing list...don't you love it when new people come along.  Progress bars should be interesting, from the example it looks like you just make the progressbar and move it to a reserved place on the statusbar, then when the window is sized, move it accordingly, etc.