Sign in to follow this  
Followers 0
chirimbol

GUICtrlCreateMonthCal use

6 posts in this topic

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



#2 ·  Posted (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 by toothyXdip

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

Share this post


Link to post
Share on other sites

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

sorry i edited that out lol there it is up there

Thanks, it works

Share this post


Link to post
Share on other sites

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  
Followers 0