stev379 Posted September 30, 2005 Share Posted September 30, 2005 How can a tooltip be set to display until the cursor is moved away from the source (in this case, a button)? I apologize as I'm sure this has been answered before, I couldn't find it. $button_submit = GUICtrlCreateButton ("Submit", 50, 400, 85, 25) GUICtrlSetTip(-1, "Click here to submit changes.") Thanks for any help or suggestions!! Link to comment Share on other sites More sharing options...
Josbe Posted September 30, 2005 Share Posted September 30, 2005 (edited) How can a tooltip be set to display until the cursor is moved away from the source (in this case, a button)?I apologize as I'm sure this has been answered before, I couldn't find it.$button_submit = GUICtrlCreateButton ("Submit", 50, 400, 85, 25) GUICtrlSetTip(-1, "Click here to submit changes.")Thanks for any help or suggestions!!¿? Do you want a tooltip always on screen? Then use Tooltip function. Edited September 30, 2005 by Josbe AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
stev379 Posted September 30, 2005 Author Share Posted September 30, 2005 (edited) ¿? Do you want a tooltip always on screen? Then use Tooltip function.I'm sorry, my mistake, not a tooltip a GUICtrlSetTip.Well, I'd like the GUICtrlSetTip to stay visable as long as the cursor is hovering on the button. Or at least to reappear if it times out and I move the cursor away and back to the button again. Edited September 30, 2005 by stev379 Link to comment Share on other sites More sharing options...
Valuater Posted September 30, 2005 Share Posted September 30, 2005 (edited) i did it like this... $pos = "" $pos=GUIGetCursorInfo() If $pos[4] = 5 Then GUIctrlSetState($prog_1_pic, $GUI_SHOW) GUIctrlSetState($prog_1_label, $GUI_SHOW) Do $msg1 = GUIGetMsg() If $msg1 = $Prog_1 Then MsgBox(64, " Item Creater"," Item Creater Program will now Run "); call the function $pos1=GUIGetCursorInfo() Sleep(100) Until $pos1[4] <> 5 GUIctrlSetState($prog_1_label, $GUI_HIDE) GUIctrlSetState($prog_1_pic, $GUI_HIDE) EndIf If $pos[4] = 6 Then GUIctrlSetState($prog_2_pic, $GUI_SHOW) GUIctrlSetState($prog_2_label, $GUI_SHOW) Do $msg1 = GUIGetMsg() If $msg1 = $Prog_2 Then MsgBox(64, " That Program"," That Program will now Run "); call the function $pos1=GUIGetCursorInfo() Sleep(100) Until $pos1[4] <> 6 GUIctrlSetState($prog_2_label, $GUI_HIDE) GUIctrlSetState($prog_2_pic, $GUI_HIDE) EndIf i used a picture withe words over it Edited October 1, 2005 by Valuater 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