The functionality of the status bar control is very simple. The control is made up of panel objects that are stored in a panels collection. The panels can either store text or the status of things like caps lock, scroll lock, date, num lock, etc.
By default, 1 panel already exists in the status bar control. In this example, the first panel holds the date, the second panel holds the status of the num lock key.
#DEFINE sbrDate 6
#DEFINE sbrNum 2
thisform.olecontrol1.panels.add()
thisform.olecontrol1.panels(1).Style = sbrDate
thisform.olecontrol1.panels(2).Style = sbrNum
Or, the control can store text:
x = 0
thisform.olecontrol1.panels(1).Text = "1"
thisform.olecontrol1.panels(1).tooltiptext = "1"
for x = 2 to 3
oPanel = thisform.olecontrol1.panels.add()
oPanel.Text = str(x)
oPanel.tooltiptext = str(x)
next x
>I want to design my own stauts bar using SBar from Comctl32.OCX
>and don`t no why?
>Please, help me.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only