Calendar
BlitzMax Forums/MaxGUI Module/Calendar
| ||
Does anyone know if it's possible to get the windows calendar widget (or whatever it's called) in a MaxGUI window? (for example, like the one under the Windows XP Task Scheduler, where you get a calendar lay-out of the current month, but can browse back and forth to other months to pick a specific date) |
| ||
how about something like this:Strict Function CreateCalendar:TGadget(x,y,w,h,group:TGadget) Const MSCAL$="<object id='calendar1' classid='clsid:8E27C92B-1264-101C-8A2F-040224009C02' width=100% height=100%></object>" Local control:TGadget control=CreateHTMLView(x,y,w,h,group) PollSystem HtmlViewRun control,"document.body.innerHTML=~q"+MSCAL+"~q;" Return control End Function Function SetCalendarDate(control:TGadget,day,month,year) PollSystem HtmlViewRun control,"calendar1.Year="+year HtmlViewRun control,"calendar1.Month="+month HtmlViewRun control,"calendar1.Day="+day End Function Local window:TGadget Local calendar:TGadget window=CreateWindow("calendar test",20,20,400,400) calendar=CreateCalendar(0,0,ClientWidth(window),ClientHeight(window),window) SetGadgetLayout calendar,1,1,1,1 SetCalendarDate(calendar,26,9,1967) While True Select WaitEvent() Case EVENT_WINDOWCLOSE End End Select Wend will have to do a bit more tinkering to get the user input back out of it... |
| ||
Skid; doesn't work for me.. it opens the window, and outlines an empty square.. then it gets that red "X" just like it isn't able to load an image.. |
| ||
I'm seeing the same as LarsG -- opens a window with a broken image symbol, nothing else... I'm using Windows XP Pro, SP2, IE 6. I found some other online HTML/script samples using the same CLSID at http://www.emu.edu.tr/english/facilitiesservices/computercenter/bookslib/Web%20Publishing%20Professional%20Reference%20Edition,%20William%20Stanek/ch33.htm and have the same problem when opening it straight in IE -- broken image symbol. And while I realize one might be able to get this working, I was hoping to have the actual windows GUI object itself, rather than an embedded HTML solution just for a more consistent look & feel. |
| ||
Works here just fine! I have the same config as xlsior. And yes a Gui object itself would be really better and work with standard events. |
| ||
That particular calendar is a pretty ugly control anyway. |