Sign in to follow this  
Followers 0
Synapse

Button problem

8 posts in this topic

Hi...i`ve made a button with some colors on...like the one in the screenshot...

Posted Image

The problem is...that when i click it...it makes more then 1 push...is acting like i have pushed it several time....any ideea y is it doing this strange thing???

CODE:

$Button_OK = GUICtrlCreateButton("OK", $widtho - 160, $heighto - 37, 75, 25, 0)
    GUICtrlSetFont(-1, 8, 100, 0, "Verdana")
        GUICtrlSetBkColor(-1, 0x686a65)
        GUICtrlSetColor(-1, 0xFFFFFF)
        GUICtrlSetCursor (-1, 0)

Share this post


Link to post
Share on other sites



Hi...i`ve made a button with some colors on...like the one in the screenshot...

Posted Image

The problem is...that when i click it...it makes more then 1 push...is acting like i have pushed it several time....any ideea y is it doing this strange thing???

CODE:

$Button_OK = GUICtrlCreateButton("OK", $widtho - 160, $heighto - 37, 75, 25, 0)
    GUICtrlSetFont(-1, 8, 100, 0, "Verdana")
        GUICtrlSetBkColor(-1, 0x686a65)
        GUICtrlSetColor(-1, 0xFFFFFF)
        GUICtrlSetCursor (-1, 0)
More code will be needed...

Share this post


Link to post
Share on other sites

More code will be needed...

There`s no much code to show....there`s a GUI with that button....and a Switch Case thing with a message box.....when i`m clicking the button the message box shows me the mesaage 2 or 3 time.......

Share this post


Link to post
Share on other sites

There`s no much code to show....there`s a GUI with that button....and a Switch Case thing with a message box.....when i`m clicking the button the message box shows me the mesaage 2 or 3 time.......

and if i comment the styles thing from the button it all work just fine...how it should

Share this post


Link to post
Share on other sites

Thx 2 y`all <_<

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