Jump to content

Recommended Posts

Posted

Hi,

I want to create a updown arrow, but i do not want a thousands seperator to appear when clicking on the updown arrows. I tried to set the style option nothousands but it doesn't seem to work. When clicking on the updown arrows I still get a thousands seperator.

In my script I've included:

#include <GUIconstantsEx.au3>

#include <WindowsConstants.au3>

#include <ProgressConstants.au3>

#include <UpdownConstants.au3>

I've tried this:

$IN = GUICtrlCreateInput("20000", 20, 225, 60, 20)

GUICtrlCreateUpdown($IN)

GuiCtrlSetStyle(-1, $UDS_NOTHOUSANDS)

and this:

$IN = GUICtrlCreateInput("20000", 20, 225, 60, 20)

$UD_IN = GUICtrlCreateUpdown($IN)

GuiCtrlSetStyle($UD_IN, $UDS_NOTHOUSANDS)

and this:

$IN = GUICtrlCreateInput("20000", 20, 225, 60, 20)

GUICtrlCreateUpdown($IN)

GuiCtrlSetStyle($IN, $UDS_NOTHOUSANDS)

Anyone knows what I'm doing wrong?

Thanks in advance.

John.

Posted

The answer is simple, just try

I added $UDS_ARROWKEYS so it will also react on the buttons "up" and "down"

GUICtrlCreateUpdown($Up_down_button,BitOr($UDS_ARROWKEYS,$UDS_NOTHOUSANDS))

Good luck,

Peter

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
×
×
  • Create New...