Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Formatting Default Date Picker
#1
On this example is it possible to get the default time to be 9:00:00 PM and then format it without the seconds as well so that it is 9:00 PM?

Or maybe there is a better way to do this without using SysDateTimePick32?

Function Set_Default_Date_Picker
Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

;BEGIN DIALOG
;0 "" 0x10C80A44 0x100 0 0 149 47 "Date Picker"
;3 SysDateTimePick32 0x54010000 0x204 9 9 70 15 ""
;5 SysDateTimePick32 0x54010009 0x204 81 9 64 15 ""
;1 Button 0x54030001 0x4 45 27 48 14 "OK"
;2 Button 0x54020000 0x4 96 27 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2030005 "" "" ""

if(!ShowDialog("Set_Default_Date_Picker" &Set_Default_Date_Picker)) ret

ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1
#2
Look in MSDN.
If not possible with SysDateTimePick32, then maybe use edit control + button or up-down control.


Forum Jump:


Users browsing this thread: 1 Guest(s)