Jump to content
Sign in to follow this  
chirimbol

GUICtrlCreateMonthCal use

Recommended Posts

chirimbol

Hi,

I'm Using GUICtrlCreateMonthCal without any problem.

The only thing is I would want to close the GUI when I pick a date (click or doble-click on date) not by closing with the" x" button.

Is that possible?

Thanks.

Share this post


Link to post
Share on other sites
toothyXdip

yes heres example:

#include <GUIConstants.au3>
GUICreate( "DateBox", 210,190)

$Date = GUICtrlCreateMonthCal ("",10, 10)
GUISetState()


While 1
   $msg = GUIGetMsg()
Select
    Case $msg = $Date
        Exit
EndSelect
WEnd
Edited by toothyXdip

---╔╦═╗╔╗'''╔╗╔═╦═╗╔╦═╗---╝╠═╣╝║'''║╝╝''''''╝╝║'''......''''''''''''''''''''''''''''''---╔╩═╩═╩═╩═══╩═╦═╩═╩══╦══════╗''''╔╩════════════╩══╗╔══╩══╗╔══╝ ''''''''''''''''''''''''''''''''''''''''''''''''''''║║'''''''''''''''║║ ''''''''''''''''''''''''''''''''''''''''''''''╔══╝╚══╗''''''║║''''''''''''''''''''''''''''''''''''''''''''''╚══════╝''''''╚╝

Share this post


Link to post
Share on other sites
toothyXdip

yes heres example:

#include <GUIConstants.au3>
GUICreate( "DateBox", 210,190)

$Date = GUICtrlCreateMonthCal ("",10, 10)
GUISetState()
While 1
   $msg = GUIGetMsg()
Select
    Case $msg = $Date
        Exit
EndSelect
WEnd
sorry i edited that out lol there it is up there

---╔╦═╗╔╗'''╔╗╔═╦═╗╔╦═╗---╝╠═╣╝║'''║╝╝''''''╝╝║'''......''''''''''''''''''''''''''''''---╔╩═╩═╩═╩═══╩═╦═╩═╩══╦══════╗''''╔╩════════════╩══╗╔══╩══╗╔══╝ ''''''''''''''''''''''''''''''''''''''''''''''''''''║║'''''''''''''''║║ ''''''''''''''''''''''''''''''''''''''''''''''╔══╝╚══╗''''''║║''''''''''''''''''''''''''''''''''''''''''''''╚══════╝''''''╚╝

Share this post


Link to post
Share on other sites
chirimbol

sorry i edited that out lol there it is up there

Thanks, it works

Share this post


Link to post
Share on other sites
toothyXdip

nb

glad to help :whistle:


---╔╦═╗╔╗'''╔╗╔═╦═╗╔╦═╗---╝╠═╣╝║'''║╝╝''''''╝╝║'''......''''''''''''''''''''''''''''''---╔╩═╩═╩═╩═══╩═╦═╩═╩══╦══════╗''''╔╩════════════╩══╗╔══╩══╗╔══╝ ''''''''''''''''''''''''''''''''''''''''''''''''''''║║'''''''''''''''║║ ''''''''''''''''''''''''''''''''''''''''''''''╔══╝╚══╗''''''║║''''''''''''''''''''''''''''''''''''''''''''''╚══════╝''''''╚╝

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  

×