Sign in to follow this  
Followers 0
Spiff59

Before I go tracking up BugTracker...

10 posts in this topic

#1 ·  Posted (edited)

Has this one been discussed, or ruled as "no bug", previously?

GUICreate("")
$Button1 = GUICtrlCreateButton("BUTTON WITH TEXT TIP", 120, 160, 160, 20)
GUICtrlSetTip(-1, "This is a useful tip")
GUISetState()

While 1
    If GUIGetMsg() = -3 Then ExitLoop
WEnd
Exit

Right-click or left-click on the button, and holding down the mouse button, move the mouse pointer outside of the control, and release. Tip text is now dead.

Edit: I found nothing related in either a forum search, nor a search of BT

Edited by Spiff59

Share this post


Link to post
Share on other sites



Spiff59,

Works fine for me - tip comes back every time. :idea:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Spiff59,

Works fine for me - tip comes back every time. :idea:

M23

What OS?

XP Pro SP3 here, and it fails every time for me (on multiple machines) regardless if it is run out of SciTE or as a compiled executable.

I copied the executable over to one of our servers, and it also consistantly fails on Server 2003 X64 SP2.

Edit: I've now tried it on two Windows Server 2003 X64 SP2 servers (the theme is different so the buttons look crappy), and on three Windows XP Pro SP3 machines. The GUICtrlSetTip() bug exhibits itself EVERY time on all 5 machines.

Edited by Spiff59

Share this post


Link to post
Share on other sites

Spiff59,

Vista x32 HP SP2.

Either from SciTE or compiled, the tip reappears when I replace the cursor over the button.

I specify that you have to release the button after having dragged the cursor from the button before the tip will reappear. If you keep the button pressed, the tip does not reappear - but that is normal as the tip vanishes as you press the button.

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

The bug is apparently OS-dependent.

You mouse-down inside the control, move outside the control, then mouse-up.

Breaks it every time for me on 5 different PC's with two different OS's.

Would like a bug-confirmation from someone also running XP before I submit a BT...

Edited by Spiff59

Share this post


Link to post
Share on other sites

I don't think aa bug report is going to help here. Right off the top I would say that it's the way the Windows API handles it and nothing to do with AutoIt. You can't post Windows API bugs on AutoIt Trac, besides it would take days to post them all.


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

#8 ·  Posted (edited)

I've just ran your script on XP SP3 as per your instructions and observed the following.

Right or left-clicking on the button and dragging the cursor off the control whilst holding down the mouse button, or just a normal right click, does sort of kill the tool tip, in the sense that it no longer appears when the mouse is moved over the control. However if you do a normal left click on the control this restores the tool tip which then appears when the mouse is moved over the control.

Edited by Bowmore

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook

Share this post


Link to post
Share on other sites

I've just ran your script on XP SP3 as per your instructions and observed the following.

Right or left-clicking on the button and dragging the cursor off the control whilst holding down the mouse button, or just a normal right click, does sort of kill the tool tip, in the sense that it no longer appears when the mouse is moved over the control. However if you do a normal left click on the control this restores the tool tip which then appears when the mouse is moved over the control.

I hadn't noticed that, just a normal right-click on the button does kill GUICtrlSetTip(), as does dragging with either button as I first posted. And again you are correct, a normal left-click (only) will resurrect the failed GUICtrlSetTip().

Between us, we've certainly now defined the behavior.

If this is indeed an MS bug, I'm not finding any mention of it in VB forums, or MSDN, or Google.

Share this post


Link to post
Share on other sites

I can confirm it is not an AutoIt bug as I have observed the same behaviour on a number of non AutoIt application that use windows standard controls.


"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook

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