Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Hour Input UpDown Control

$
0
0

Hi, it's hard to explain so i'll post some images

 

Did you know when you try to change the hour on Windows? You have the big clock and the input control. I'm intrested to this image:

2uivebq.jpg

If i click on the Hour, the first two number will be evidence:

1zdwz7d.jpg

The same is for Minute and Seconds, So if i click on the Up-Down control can add +1 or -1 to the hour. I can't click on the dots.

And also every element as a unique limit, 0-23 for the hour, 00-59 for minute and seconds.

 

So, how i can reproduce the same type of control? I think is possible because is a "standard" Windows control

 

This is what i have done:

#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> GUICreate("Test", -1, -1, -1, -1, $WS_SIZEBOX) $input = GUICtrlCreateInput(@HOUR & "." & @MIN & "." & @SEC, 10, 10, 100, 20) GUICtrlCreateUpdown($input) GUISetState() While 1     $msg = GUIGetMsg()     If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd

Thanks for any help


Viewing all articles
Browse latest Browse all 12506

Trending Articles