Jump to content
Sign in to follow this  
Xavier

Select & Copy label's text

Recommended Posts

Xavier

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

Share this post


Link to post
Share on other sites
Amen

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
  • Like 1

Share this post


Link to post
Share on other sites
Xavier

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.

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  

×