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

GUICtrlCreateUpdown() Weird behavior (decimal numbers)

$
0
0

Hey, can someone tell me what I'm doing wrong here?

 

I'm using 3 "updown" controls to set the desired date, but when it comes to year (4digits) when I change the value it becomes a decimal number

 

Clean up gui to show the issue:

#include <EditConstants.au3> $Form1 = GUICreate("Form1", 250, 50) $input1 = GUICtrlCreateInput(@YEAR, 100, 10, 50, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_CENTER,$ES_NUMBER,$ES_NOHIDESEL,$ES_READONLY)) $btn = GUICtrlCreateButton("Read",160,10,40,21) GUICtrlCreateUpdown($input1) GUISetState(@SW_SHOW) While 1     $nMsg = GUIGetMsg()     Switch $nMsg         Case -3             Exit         Case $btn             MsgBox(0,'',GUICtrlRead($input1))     EndSwitch WEnd

Am I doing something wrong?

Thanks in advance


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>