Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where can I find a time spinner?
Message
From
07/12/2006 08:03:36
 
 
To
06/12/2006 14:43:49
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01175353
Message ID:
01175551
Views:
8
Can someone point me to a time spinner other than the ones on the download page?

Chapter 4 of 1001 Things You Wanted to Know About Visual FoxPro

The true time spinner (Example: CH04.VCX::spnTime)

This control looks and acts just like the time spinner you see when using the Date/Time Picker ActiveX control that ships with Visual Studio. However, it has several features that make it more generally useful than the ActiveX control. First, this control does not require that it be bound to a field of the DateTime data type. As we have said, the best format for storing user entered time is in a character field formatted to include the universal ‘:’ time separator. The control can be configured to display and recognize either a 5-character ‘hh:mm’ format or a full 8-character ‘hh:mm:ss’ format and update either appropriately. This is controlled by a single property, lShowSeconds. Finally, because this is a native Visual FoxPro control it does not suffer from the inherent problems that haunt ActiveX controls with respect to the multiple versions of specific windows DLLs, nor are there any problems associated with registering the control.

This control uses a cControlSource property for binding to an external data source and has associated methods (RefreshSpinner and UpdateControlSource) to handle the issue of converting between character (source) and numeric (internal) values and back. This control can also handle being bound to a form property, as well as to a data source. The UpdateControlSource method, called from the spinner's Valid method, allows the time spinner, which is really an unbound control, to behave just like one that is bound when its cControlSource property is set.
Previous
Reply
Map
View

Click here to load this message in the networking platform