PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Dietmar Deimann on November 13, 2004, 07:07:20 AM

Title: Date/Time Picker
Post by: Dietmar Deimann on November 13, 2004, 07:07:20 AM
Hello,

I actual now nothing about API programming  :? , so I hope this question will help me to understand. How can I set the control to a specific date and the checkbox (if choosen) to marked or not marked? And read out the new values given by a user? Is there someone who could give me a short code example?
Is somewhere a documentation available, who explains the API programming with Powerbasic?
Title: Date/Time Picker
Post by: Roger Garstang on November 13, 2004, 09:38:22 PM
Get Value in control:

SendMessage(HWND_DATETIME, %DTM_GETSYSTEMTIME, 0, VARPTR(SysTimeVariable))

%DTM_SETSYSTEMTIME to set it (See MSDN online)

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/datetime/messages/dtm_getsystemtime.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/datetime/messages/dtm_setsystemtime.asp
Title: Date/Time Picker
Post by: Dietmar Deimann on November 14, 2004, 07:28:57 AM
Roger,
thank you for the reply.