Jump to content
Sign in to follow this  
duhu

Tooltips

Recommended Posts

duhu

I want that a tooltip to be displayed when i pass with the mouse cursor over the Gui buttons, like usually software have. Can someone post an example of a gui with one button and a tooltip that show up when u put the mouse cursor over the button and dissapear if u move the cursor away.

thx

Doohoodogg

Share this post


Link to post
Share on other sites
Josbe

I want that a tooltip to be displayed when i pass with the mouse cursor over the Gui buttons, like usually software have. Can someone post an example of a gui with one button and a tooltip that show up when u put  the mouse cursor over the button and dissapear if u move the cursor away.

thx

Doohoodogg

<{POST_SNAPBACK}>

GUICtrlSetTip() (For additional info look the helpfile)

Share this post


Link to post
Share on other sites
HardCopy

#include <GuiConstants.au3>

GuiCreate("MyGUI", 392, 323,(@DesktopWidth-392)/2, (@DesktopHeight-323)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)

$Button_1 = GuiCtrlCreateButton("Button1", 160, 170, 50, 50)
GUICtrlSetTip($Button_1,"Im a tip !")

GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case $msg = $Button_1


Case Else
    ;;;
    EndSelect
WEnd
Exit

HardCopy


Contributions: UDF _DateYearFirstChildren are like Farts, you can just about stand your own.Why am I not a Vegetarian?...Well...my ancestors didn't fight & evolve to the Top of the food chain for me to survive on Salad

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.