xroot Posted July 7, 2008 Share Posted July 7, 2008 I could not get the calendar control(mscal.ocx) to work with GUICtrlCreateObj so I wrote a class wrapper for mscal.ocx. This makes it very easy for the user to select a date from a nice looking calendar with not alot of coding. Look at calcomtest.au3 to see how to use the dll(calcom.dll) real simple and be sure to register the dll first. CalCom.CalComC (class wrapper name(calcom.dll) for mscal.ocx Ver# 11.0.8161.0) CLASSES: BackColor TitleFontColor DayFontColor GridFontColor GridCellEffect 0=Flat 1=Raised(Default) 2=Sunken CalType 1=M/D/Y(Default) 2=Y/M/D 3=M Name D, Y Showcalcom.zip Link to comment Share on other sites More sharing options...
gseller Posted July 7, 2008 Share Posted July 7, 2008 Cool! You could add something like FileInstall("calcom.dll", @SystemDir & "\calcom.dll", 0) RunWait(@ComSpec & " /c regsvr32 /s calcom.dll", @SystemDir, @SW_HIDE) Link to comment Share on other sites More sharing options...
Champak Posted July 11, 2008 Share Posted July 11, 2008 This is cool, but there is no way to control the calendar....size, gui, embedding. Also, why didn't you just use the mscal.ocx that comes with office...I know, I know, the first thing someone will say is what if the person doesn't have office...then I would say who doesn't have office? Link to comment Share on other sites More sharing options...
xroot Posted July 12, 2008 Author Share Posted July 12, 2008 This is cool, but there is no way to control the calendar....size, gui, embedding. Also, why didn't you just use the mscal.ocx that comes with office...I know, I know, the first thing someone will say is what if the person doesn't have office...then I would say who doesn't have office?When I created calcom all I wanted was to present the calendar so users could click on a date. I added the color struff to play around with the control, puttingin the size stuff x,y etc. is no problem just lazy I guess. To use mscal.ocx itself how would you show the calendar? I do not have Office and you can get thecontrol off the net works great. Also the WinWaitClose is not needed because the calendar is modal. Link to comment Share on other sites More sharing options...
Diana (Cda) Posted September 6, 2008 Share Posted September 6, 2008 ...and be sure to register the dll first....This is a great control, thanks.For those that need something that works on a USB flash drive in a place where registering a control will not be possible due to access restrictions (since this doesn't work without registering the calcom.dll first), the calendar code in the following URL may be of help since it works "straight out of the box", as it were: http://www.autoitscript.com/forum/index.ph...st&p=543728So this thread and the above URL give us 2 great methods to bring up a calendar.Cheers. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now