calendar control

BlitzMax Forums/BlitzMax Beginners Area/calendar control

r(Posted 2009) [#1]
Hello,
is possible to have the windows calendar control/calendar combo and date/time editor ?
Maybe with the direct use of comctrl32.dll ?


Beaker(Posted 2009) [#2]
It is possible, but you would have to code it yourself. Or use wxMax?


jsp(Posted 2009) [#3]
Or maybe try degac's calender gadget (MaxGui ProxyGadget):
http://www.blitzbasic.com/Community/posts.php?topic=85151#962708
Should be cross-platform.


xlsior(Posted 2009) [#4]
Degac's is nice, but personally I'd still be interested in finding out how to use the native windows control as well...


r(Posted 2009) [#5]
Somebody can help me ?

I try that :


but that don't work.
Any idea ????


EOF(Posted 2009) [#6]
This modifed version shows the calender
I had to change a few things in your code. One of the main ones being:

="CreateWindowExW@48" to ="CreateWindowExA@48"

The other being:

InitCommonControlsEx(Varptr (icex)) to InitCommonControlsEx(Byte Ptr (icex))






r(Posted 2009) [#7]
I have a calendar !

Thx to jim brown

how to interact with ? Receive event ?
I can't send message to change date...




EOF(Posted 2009) [#8]
Your undefined variables in _systemtime are INT by default
Change as follows to fix the SendMessage call to change the date

Type _systemtime
	Field year:Short,month:Short,dayofweek:Short,day:Short
	Field hour:Short,minute:Short,second:Short,milliseconds:Short
EndType


I have no time at the moment to look at the event side of things though