Spiff59 Posted May 25, 2010 Share Posted May 25, 2010 (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 May 25, 2010 by Spiff59 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 25, 2010 Moderators Share Posted May 25, 2010 Spiff59, Works fine for me - tip comes back every time. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Spiff59 Posted May 25, 2010 Author Share Posted May 25, 2010 (edited) Spiff59,Works fine for me - tip comes back every time. M23What 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 May 25, 2010 by Spiff59 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 25, 2010 Moderators Share Posted May 25, 2010 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 Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Spiff59 Posted May 25, 2010 Author Share Posted May 25, 2010 (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 May 25, 2010 by Spiff59 Link to comment Share on other sites More sharing options...
GEOSoft Posted May 25, 2010 Share Posted May 25, 2010 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!" Link to comment Share on other sites More sharing options...
PsaltyDS Posted May 25, 2010 Share Posted May 25, 2010 Not seeing the symptoms on Vista 32bit. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Bowmore Posted May 25, 2010 Share Posted May 25, 2010 (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 May 25, 2010 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 Link to comment Share on other sites More sharing options...
Spiff59 Posted May 25, 2010 Author Share Posted May 25, 2010 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. Link to comment Share on other sites More sharing options...
Bowmore Posted May 25, 2010 Share Posted May 25, 2010 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now