Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DatePicker - Single or Double Click

Status
Not open for further replies.

Auguy

Programmer
May 1, 2004
1,206
US
No big deal here, just wondering what the generally accepted/preferred method is be to select a date. Single or Double Click? Does anyone have any good reasons to use/not use either one.

Auguy
Northwest Ohio
 
The datepicker value should be done on the 'change' event
similar to this:

MESSAGEBOX('Date picked is ' + STR(thisform.olecontrol1.Day))



If you can't stand behind your troops, stand in front of them.
Semper Fidelis

Jim
 
Sorry wrong control for datepicker. The change causes it to work when you change months also. Use the 'closeup' event instead. Sorry.

If you can't stand behind your troops, stand in front of them.
Semper Fidelis

Jim
 
Thanks Jim. My date picker is in a pop up form that is displayed when the user right clicks a date field. What I'm really looking for is what should trigger the program the user has selected a date, a single or double click. Then I close the form and set the filed's value to the value of the date picker.

Auguy
Northwest Ohio
 

I would still use the same trigger.

Have the control set the date on the main form and release the date form in the closeup event.

If you can't stand behind your troops, stand in front of them.
Semper Fidelis

Jim
 
Thanks to both of you for your assistance.

Auguy
Northwest Ohio
 
Auguy/Mike,

As we know, certain controls in Windows behave in certain ways. When I see a button or hyperlink style control, I expect that I just need to click once to carry out the action. Where there is another type of control, perhaps a label, I would probably try double-clicking to get the action I want.

So I suggest that the trigger you use depends on what control you are using.

Hope that helps,

Stewart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top