Jump to content
Sign in to follow this  
Necromorph

_GUiCtrlDTP_?

Recommended Posts

Necromorph

is there a way to tell in a ctrl

$time = GUICtrlCreateDate('', $num, $num, $num, -1, $dts_timeformat
$timeHandle = GUICtrlGetHandle($time)
_GUICtrlDTP_SetFormat($timeHandle, 'hh:mm tt')

now, when this Ctrl is in a GUI, is there a way to tell if the arrow up, or arrow down button has been pushed? basically, i want to make the Ctrl step by 15 minutes each time the ctrl is used. and i have a _Func written to do this, but i need to know if the ctrl has gone up or down.

sorry if im two vauge. thanks

Edited by redLabel

Share this post


Link to post
Share on other sites
PsaltyDS

You could register WM_NOTIFY and watch for the DTN_DATETIMECHANGE notification. Your handler would have to determine for itself how the value changed from the NMDATETIMECHANGE structure and apply the desired jump in time.

There is also a DTN_WMKEYDOWN notification that might tell you exactly which key was hit, but I'm fuzzy on exactly when that message is sent. Experimentation is called for.

Ref: MSDN: Date and Time Picker Notifications

;)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
Necromorph

thanks for the reply, i have been reading the help file and looking at the examples of how to do this, and i have to be honest, it is a bit out of my comprehension. but i am going to experiment, and attempt to get it working, i will post my trials. thanks again for the tip.

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.