Jump to content

Select & Copy label's text


Xavier
 Share

Recommended Posts

Hi all,

I use to create label controls but i realize i cannot select & copy (to clip) its text.

I could find any corresponding styles.

Is it possible to do it?

my workaround is currently the following: create a input control with $ES_READONLY styles instead of creating a label. Actually, it works but the GUI is not as nice as a label.

Thx a lot

Link to comment
Share on other sites

Hi try this Style

$input1=GUICtrlCreateInput("ok copy me!",0,40,-1,-1,$ES_READONLY,$WS_EX_TOOLWINDOW )

Or

$input1=GUICtrlCreateEdit("ok copy me!",0,40,-1,-1,$ES_READONLY,$WS_EX_TOOLWINDOW )

Edited by Amen
Link to comment
Share on other sites

Hi try this Style

$input1=GUICtrlCreateInput("ok copy me!",0,40,-1,-1,$ES_READONLY,$WS_EX_TOOLWINDOW )

Or

$input1=GUICtrlCreateEdit("ok copy me!",0,40,-1,-1,$ES_READONLY,$WS_EX_TOOLWINDOW )

Well, thanks a lot Amen, that is what i needed.

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