Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clock on top level form?
Message
From
19/11/1998 03:35:33
 
 
To
18/11/1998 14:11:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00158924
Message ID:
00159144
Views:
19
Yup, this works.

What I do is use a ToolBar with the dock property set to 3 (bottom) - this is my status bar. I then have TextBoxes in the ToolBar which are used for StatusBarText (_VFP.StatusBar) Date(), Time() NUMLOCK(), CAPSLOCK(), INSMODE, ProgressBar, or anything thing else the app calls for. The application (or form) timer then updates their values


>Hiya Mark:
>
>There is a way to do it. First, add an ActiveX StatusBar control (call it olePanel) to the form. Then, add a Timer to the form. Change the Interval property in the timer to 333 (for every 1/3rd second). Then, in the Timer event of the timer, put the following code:
>
>THISFORM.oldPanel.Panels(1).Text = TIME()
>
>You can fancy up that TIME() expression however you want.
>
>
>
>>I need to show the clock (SET CLOCK TO x,y) on a form who's ShowWindow property is set to 2 (Top Level Form)? However, since the "desktop" is not visible in a top level form it does not appear. I tried to turn on the status bar too, not really what I want, but it is not visible either. Any ideas on how to show the clock on a top level form?
>>
>>Thanks.
- Jeff
Previous
Reply
Map
View

Click here to load this message in the networking platform