01-11-2004, 07:21 AM
I urgently need help to do this homework for a class. I have a status bar at the bottom of my application called "sbMessages" and need to be able to write text into programatically. I didn't see any ".Caption" or ".Text" properties for this type of item and it's my first time working with them. Does anyone know how to do this? Thanks in advance.
01-11-2004, 07:55 AM
While I cannot give you the answer on how, I can at least point you in the right direction...
When dealing with a status bar you have to remember that it uses panels... The panel would hold the caption variable... I.E.:
sbMessages.Panels(1).Text = "Say this..."
So the first thing you need to do is to define a panel onto your status bar...
01-11-2004, 09:38 AM
sage is right, partly. The status bar has a Style property. If this property is set to sbrNormal then the status bar has the panels and what sage said is true. If you set this property to sbrSimple then your status bar won't have multiple panels, just one, and then you can set the text using the SimpleText property.
01-11-2004, 10:47 AM
Thanks for clarifying shmoove... ;)
01-13-2004, 10:52 PM
Thank you both for helping. All I needed was to change the style to simple and post some dummy text when the user clicks on a menu or toolbar item. I hope my teacher's pleased cuz the book wanted it to be a label placed down at the bottom of the form, which is stupid in my mind. Thanks guys