Jump to content
Sign in to follow this  

Date Input With $dts_shownone Option

Recommended Posts

I'm having problems with the GUICtrlCreateDate() command when used with the $DTS_SHOWNONE style - (more than the goofy way it looks - shouldn't there just be a 'none' option in the drop-down calendar? Good going MS...). Namely, I can't tell from within the script if the box is checked or not, nor can I send a call to check or uncheck.

Of course, I'm assuming that I do it the same way as a checkbox, with GUICtrlGetState() and GUICtrlSetState(). Maybe that's not right. By the way, no matter what date is selected, or the state of the checkbox, if I pop up a message box giving me the number returned by GUICtrlGetState, it's always 80. Digging through GUIConstants.au3 makes me think it's returning $GUI_ENABLE + $GUI_SHOW (64+16=80). Big help there. And it doesn't matter if it's checked or not, GUICtrlRead() always returns the date in the box, so that's not it either.

Does anyone know the correct way to set/get this attribute? The help file doesn't use the $DTS_SHOWNONE style in the example, and the style description for $DTS_SHOWNONE is simply:

Enables the control to accept no date as a valid selection state.

No help there, and no further explanations that I can find. I'm using Beta version

Thanks for the help!

"There are 10 types of people in this world - those who can read binary, and those who can't.""We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true." ~Robert Wilensky0101101 1001010 1100001 1101101 1100101 1110011 0110011 1001101 10001110000101 0000111 0001000 0001110 0001101 0010010 1010110 0100001 1101110

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...