Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I create my own status bar for _SCREEN (Comctl32.OCX
Message
 
 
To
29/07/1998 06:25:44
Dmitry V.Glouzdov
LUKOIL (Nizhny Novgorod)
Nizhny Novgorod, Russia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00122233
Message ID:
00122251
Views:
21
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
Map
View

Click here to load this message in the networking platform