Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Category:
Forms & Form designer
>>>>If I'm not mistaken, I believe that a VFP textbox bound to a date field had some built in smarts that would let end users edit the date value by using the up/down arrow keys (and perhaps pageup/pagedn too). The month/day/year portions of the date would be automatically highlighted/selected and simply by pressing the up/down arrow keys, the highlighted value would increase/decrease by 1.
>>>>
>>>>Am I just dreaming that this was the way it worked out of the box? If not, can anyone give me some pointers as to how I go about getting it done? I've tried fooling with the input mask and format properties of the textbox but no joy.
>>>>
>>>>TIA
>>>>Mike
>>>
>>>If I'm not mistaken, the built-in textbox control doesn't have that functionality with date values. You could however use the DTPicker ActiveX control.
>>
>>Too bad. Looks like its time to start coding that functionality into a custom textbox class :( I try to avoid ActiveX controls where possible.
>
>Paul Mrozowski (RCS Solutions) has posted a nice non-ActiveX calendar control that you can use as a datepicker.
Thanks for the heads up to Paul's control. I've got something similar already working that mimics the Windows calendar (click the clock/date shown in the taskbar). I was really hoping to improve the keyboard entry of a date value shown in a textbox.
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