Jump to content

GuiCtrlCreateUpDown maximum value 32767?


LDEelco
 Share

Recommended Posts

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, LDEelco

Here 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

EndSelect

WEnd

Link to comment
Share on other sites

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 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

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
 Share

  • Recently Browsing   0 members

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