Jump to content

Selectable label


Kyan
 Share

Recommended Posts

I know this ain't much (nothing for autoit experts) but can help someone who was looking for a selectable label ;)
 
(I used the hex values to avoid #include <EditConstants.au3>, the vars are in comment in front of the 2nd line)
 

$Form1 = GUICreate("Test", 351, 50)
$Label1 = GUICtrlCreateEdit("Selectable Label", 10, 4, 176, 20, 0x0800,0x00000020) ;$ES_READONLY, $WS_EX_TRANSPARENT
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case -3
            Exit
    EndSwitch
WEnd

PS: I think the same could be accomplished with GUICtrlCreateInput()

Heroes, there is no such thing

One day I'll discover what IE.au3 has of special for so many users using it.
C'mon there's InetRead and WinHTTP, way better
happy.png

Link to comment
Share on other sites

You seem to be providing rather than questioning, but apart from this probably not being the correct place for an Example, I'm not understanding the benefit.

You can make a genuine Label clickable, by just using $SS_NOTIFY

And it can be made to change color etc if necessary, to show it is selected.

Otherwise, it seems you are only repeating what anyone could get quite simply, and we do, from the Help file.

Perhaps I'm missing something?

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

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

×
×
  • Create New...