Jump to content

Infinite tool tip


stev379
 Share

Recommended Posts

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

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 by Josbe
Link to comment
Share on other sites

¿? 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 by stev379
Link to comment
Share on other sites

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 by Valuater

NEWHeader1.png

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