LDEelco Posted January 23, 2006 Share Posted January 23, 2006 Hello,I have created a GUI and made a Input with Updown arrows.The beginning value of that input is "11001001" and should go up from there.But when I press the up or down button that is attached to that input it changes to the maximim of 32767?Thanks for your help.Greetz, LDEelcoHere is an example script:#include <GuiConstants.au3>GuiCreate("Program", 305, 250)GuiSetState()$input1 = GuiCtrlCreateInput ("11001001", 10, 10, 100, 20)GuiCtrlCreateUpdown ($input1, $UDS_NOTHOUSANDS)While 1 $msg = GUIGetMsg() Select Case $MSG = $GUI_EVENT_CLOSE Exit EndSelectWEnd Link to comment Share on other sites More sharing options...
GaryFrost Posted January 23, 2006 Share Posted January 23, 2006 (edited) Apparently there is a max number set internally to 32767, not sure why this would be, if the control is set to a max above 32767 then the numbers become negative #include <GuiConstants.au3> GUICreate("Program", 305, 250) GUISetState() $input1 = GUICtrlCreateInput("40000", 10, 10, 100, 20) $updown = GUICtrlCreateUpdown($input1, $UDS_NOTHOUSANDS) ;~ GUICtrlSetLimit($updown,40000) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd Edited January 23, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now