Sign in to follow this  
Followers 0
stev379

Infinite tool tip

4 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Josbe

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by stev379

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by Valuater

NEWHeader1.png

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