Jump to content
Sign in to follow this  
3dude

Calendar Question

Recommended Posts

3dude

How can I make a calendar appear! I don't won't it to be a drop-down menu! I want it to be the whole calendar!

And for example to click on a date and a window appears!

Thanks in advanced!


View my blog :) 3dude's blog <= help with project :S

Share this post


Link to post
Share on other sites
therks

#include <GUIConstantsEx.au3>
$gui = GUICreate('', 200, 200)
$cal = GUICtrlCreateMonthCal('1982/11/02', 0, 0, 200, 200)
GUISetState()

While 1
    $gm = GUIGetMsg()
    Switch $gm
        Case $GUI_EVENT_CLOSE
            ExitLoop
        Case $cal
            MsgBox(0, '', GUICtrlRead($cal))
    EndSwitch
WEnd

Share this post


Link to post
Share on other sites
3dude

Thanks a lot!

It is great!

Could you please tell me if I can , for example, remove the bar where the buttons close minimize and..... are!

I want to make it look smoother because it will stay on the desktop!

For example to have a small "X" button to close it!

You don't have to write the script if you want! Just tell me where to look!

Thanks


View my blog :) 3dude's blog <= help with project :S

Share this post


Link to post
Share on other sites
therks

Look at the window styles, specifically $WS_POPUP, that will remove the titlebar. Then you could add your own button to close the window if you'd like.

Share this post


Link to post
Share on other sites
3dude

Thanks!

Last question!

I have a GUI you click a button and the calendar appears!

If I close the calendar the whole program closes!

Please don't shout at me! I tried to understand the parent-child thing but I couldn't!

Thanks!

-----------------

And also how can I make the background of the calendar disappear! It is white! I want to see only the numbers and words!

Thanks!

btw the thing whit the frame worked!

Edited by 3dude

View my blog :) 3dude's blog <= help with project :S

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.