Sign in to follow this  
Followers 0
Felix

Guictrlcreateupdown nothousands

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

This fixed my problem muttley

Thanks Peter, very much thanks.

John

Share this post


Link to post
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
Sign in to follow this  
Followers 0