Jump to content

Button problem


Synapse
 Share

Recommended Posts

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)
Link to comment
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...
Link to comment
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

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