Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clock on top level form?
Message
From
18/11/1998 14:11:59
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00158924
Message ID:
00158933
Views:
18
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.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform