chirimbol Posted February 24, 2007 Posted February 24, 2007 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.
toothyXdip Posted February 24, 2007 Posted February 24, 2007 (edited) 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 February 24, 2007 by toothyXdip ---╔╦═╗╔╗'''╔╗╔═╦═╗╔╦═╗---╝╠═╣╝║'''║╝╝'''║'''╝╝║'''║......║'''║'''║'''║'''''''''║'''''''''║'''║---╔╩═╩═╩═╩═══╩═╦═╩═╩══╦══════╗''''╔╩════════════╩══╗╔══╩══╗╔══╝ ''''╝''''''''''''''''''''''''''''''''''''''''''''''''║║'''''''''''''''║║ ''''''''''''''''''''''''''''''''''''''''''''''╔══╝╚══╗''''''║║''''''''''''''''''''''''''''''''''''''''''''''╚══════╝''''''╚╝
chirimbol Posted February 24, 2007 Author Posted February 24, 2007 can i see your script? GUICreate( "Elegir Fecha", 210,190) $Date = GUICtrlCreateMonthCal ($date,10, 10) GUISetState() Do $msg = GUIGetMsg() Until $msg = $GUI_EVENT_CLOSE $choice = GUICtrlread($Date) GUIDelete()
toothyXdip Posted February 24, 2007 Posted February 24, 2007 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 ---╔╦═╗╔╗'''╔╗╔═╦═╗╔╦═╗---╝╠═╣╝║'''║╝╝'''║'''╝╝║'''║......║'''║'''║'''║'''''''''║'''''''''║'''║---╔╩═╩═╩═╩═══╩═╦═╩═╩══╦══════╗''''╔╩════════════╩══╗╔══╩══╗╔══╝ ''''╝''''''''''''''''''''''''''''''''''''''''''''''''║║'''''''''''''''║║ ''''''''''''''''''''''''''''''''''''''''''''''╔══╝╚══╗''''''║║''''''''''''''''''''''''''''''''''''''''''''''╚══════╝''''''╚╝
chirimbol Posted February 24, 2007 Author Posted February 24, 2007 sorry i edited that out lol there it is up thereThanks, it works
toothyXdip Posted February 24, 2007 Posted February 24, 2007 nb glad to help ---╔╦═╗╔╗'''╔╗╔═╦═╗╔╦═╗---╝╠═╣╝║'''║╝╝'''║'''╝╝║'''║......║'''║'''║'''║'''''''''║'''''''''║'''║---╔╩═╩═╩═╩═══╩═╦═╩═╩══╦══════╗''''╔╩════════════╩══╗╔══╩══╗╔══╝ ''''╝''''''''''''''''''''''''''''''''''''''''''''''''║║'''''''''''''''║║ ''''''''''''''''''''''''''''''''''''''''''''''╔══╝╚══╗''''''║║''''''''''''''''''''''''''''''''''''''''''''''╚══════╝''''''╚╝
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