Sign in to follow this  
Followers 0
ancp

Link for label in form - how?

4 posts in this topic

Hi, please, how make URL link for label in GUI? I need clicktable lbl, not any btn.

...

$GUI_LBL_LINK_TO_HOMEPAGE = GUICtrlCreateLabel("Click here to visit BLABLAH", 100, 100, 100, 100)

....

And... ?

Thanks

Share this post


Link to post
Share on other sites



you can use the style $SS_NOTIFY for your label which will notify you when the user clicks it... like a button

Share this post


Link to post
Share on other sites

Oh, yes.. :whistle:

Thanks for fast reply!

Share this post


Link to post
Share on other sites

#include <GuiConstants.au3>

GUICreate('', 200, 100)
$lbl = GUICtrlCreateLabel('Click Here', 75, 42, 50, 16)
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlSetCursor(-1, 0)

GUISetState()

While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $lbl
            ShellExecute('http://www.autoitscript.com')
    EndSwitch
WEnd

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