Jump to content

Recommended Posts

Posted (edited)

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
Posted

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
Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...