Sign in to follow this  
Followers 0
Ealric

BUG found in button control

5 posts in this topic

Hi all,

I tried posting a bug report but I don't have permission to do so. I found a bug with the Button control using the following:

$BTNDELETE = GUICtrlCreateButton("&Delete Macro", 270, 609, 90, 20)
GUICtrlSetState(-1, $GUI_DISABLE)
GUICtrlSetTip($BTNDELETE, "Delete your currently focused macro")
GUICtrlSetBkColor($BTNDELETE, 0x0FF0000)
GUICtrlSetColor($BTNDELETE, $_font)oÝ÷ ØäZºÚ"µÍÌÍÐSUHHÕRPÝÜX]P]Û ][ÝÉ[Ñ[]HXXÜÉ][ÝËÌ
KL
BÕRPÝÙ]Ý]JLK    ÌÍÑÕRWÑTÐPJBÕRPÝÙ]
LK  ][ÝÑ[]H[ÝÝ[HØÝÙYXXÜÉ][ÝÊBÕRPÝÙ]ÐÛÛÜLK
BÕRPÝÙ]ÛÛÜLK  ÌÍ×ÙÛ
oÝ÷ Ø    ݶ§¦-xÓ~¦²µÈb¬!W¥¢ZºÚ"µÍÚ[HBIÌÍÛÙÈHÕRQÙ]ÙÊ
BRY ÌÍÛÙÈH ÌÍÐSUH[BSÙÐÞ
    ][ÝÑ[[ÈSUI][ÝË ][ÝÚIÌÎNÛH[[ÈH[Ý[Û][ÝÊBBSÙÐÞ
    ][ÝÓX][ÈSUI][ÝË    ][ÝÚIÌÎNÛHX][ÈH[Ý[Û][ÝÊBQ[[

The function will loop twice. If you remove the background color and font color, the function works correctly, only activating once. Just an fyi to whomever is working on bug reports.

Thanks


My Projects: [topic="89413"]GoogleHack Search[/topic], [topic="67095"]Swiss File Knife GUI[/topic], [topic="69072"]Mouse Location Pointer[/topic], [topic="86040"]Standard Deviation Calculator[/topic]

Share this post


Link to post
Share on other sites



This is a known issue in 3.2.8.0, it was fixed in 3.2.10.0.

Share this post


Link to post
Share on other sites

try using thw switch statment instead. not sure if it wil fix your problem but it bugs me :)

While 1
$msg = GUIGetMsg()
    Switch $msg
    Case $BTNDELETE
        MsgBox(0, "Entering BTNDELETE", "i'm entering the function")
        MsgBox(0, "Leaving BTNDELETE", "i'm leaving the function")
    EndSwitch
WEnd

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

$BTNDELETE = GUICtrlCreateButton("&Delete Macro", 270, 609, 90, 20)
GUICtrlSetTip(-1, "Delete your currently focused macro")
GUICtrlSetBkColor(-1, 0x0FF0000)
GUICtrlSetColor(-1, $_font)
GUICtrlSetState(-1, $GUI_DISABLE)

BTW using -1 is a bad habit. Specify the variable.

GUICtrlSetColor($BTNDELETE, $_font)

And yes it is a known bug in 3.2.8.0. What version are you using?

Edited by GEOSoft

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

$BTNDELETE = GUICtrlCreateButton("&Delete Macro", 270, 609, 90, 20)
GUICtrlSetTip(-1, "Delete your currently focused macro")
GUICtrlSetBkColor(-1, 0x0FF0000)
GUICtrlSetColor(-1, $_font)
GUICtrlSetState(-1, $GUI_DISABLE)

BTW using -1 is a bad habit. Specify the variable.

GUICtrlSetColor($BTNDELETE, $_font)

And yes it is a known bug in 3.2.8.0. What version are you using?

3.2.8.1 on this computer - completely forgot that I hadn't upgraded this one particular machine. All my other machines are using the latest version. Sorry for posting a duplicate bug.

As for the -1, I don't use that. I was just posting an example of two ways that I duplicated it. I always use the variable, otherwise, I'd go nuts trying to hunt things down, heh.

I'm an old timer. I just don't post often.

Thanks.


My Projects: [topic="89413"]GoogleHack Search[/topic], [topic="67095"]Swiss File Knife GUI[/topic], [topic="69072"]Mouse Location Pointer[/topic], [topic="86040"]Standard Deviation Calculator[/topic]

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