Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 17 total
Thread Select and copy label
Mon, Sep 17 2018 11:49 AMPermanent Link

Pasquale

Web Pos srl

Hello, I saw a post in 2016, where you said you had to introduce some updates on it, ie the ability to select and copy a TLabel, when it will be possible to have this update?
Mon, Sep 17 2018 12:20 PMPermanent Link

Matthew Jones

Pasquale wrote:

> ability to select and copy a TLabel

I must be missing something, because you can select and copy any component in the current release, and I can't remember a release you couldn't.

--

Matthew Jones
Mon, Sep 17 2018 1:27 PMPermanent Link

Raul

Globestar Systems

Team Elevate Team Elevate

On 9/17/2018 12:20 PM, Matthew Jones wrote:
> I must be missing something, because you can select and copy any component in the current release, and I can't remember a release you couldn't.

Are you sure?

AFAIK TLabel has never allowed one to select caption text and copy.

You can do other things like use read-only tedit or event handler on
click of course but not exactly same

Raul

Tue, Sep 18 2018 5:54 AMPermanent Link

Matthew Jones

Raul wrote:

> Are you sure?
>
> AFAIK TLabel has never allowed one to select caption text and copy.

Ah, that's what I'm missing: "at run time"...

IIRC, I use an edit box for such things, and style it appropriately.

--

Matthew Jones
Tue, Sep 18 2018 8:58 AMPermanent Link

Pasquale

Web Pos srl

"Matthew Jones" wrote:

>>IIRC, I use an edit box for such things, and style it appropriately.

how do you do it??

could you attach the item to me?
Tue, Sep 18 2018 11:01 AMPermanent Link

Matthew Jones

Pasquale wrote:

> how do you do it??

I can't post a sample as it is from an app that isn't mine. But all I did was set the ReadOnly property to true, and then set the style for the TEdit to make it look like a label, or similar to one. I think I set the background to be transparent too, which allowed me to colour the background with a basic panel, but that's getting fancy.

Key is, the readonly edit allows you to copy, but not change.

--

Matthew Jones
Wed, Sep 19 2018 1:24 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Pasquale,

<< Hello, I saw a post in 2016, where you said you had to introduce some updates on it, ie the ability to select and copy a TLabel, when it will be possible to have this update?
>>

Install the attached unit as a new component in the IDE:

https://www.elevatesoft.com/manual?action=viewtopic&id=ewb2&topic=Adding_Component

and use it in your project for selectable text labels.

Note that the label's text selection will *not* work in the IDE.  For some reason the text selection is turned off for the IDE's embedded browser, and I have fixed this for EWB 3.

Tim Young
Elevate Software
www.elevatesoft.com



Attachments: SelectLabel.wbs
Thu, Sep 27 2018 3:10 AMPermanent Link

Pasquale

Web Pos srl

Hello Tim, I tried, but it only makes me select the label, it does not make me copy it
Thu, Sep 27 2018 12:11 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Pasquale,

<< Hello Tim, I tried, but it only makes me select the label, it does not make me copy it >>

You can right-click to copy the text in any normal browser.  It just doesn't work in the IDE browser.

Tim Young
Elevate Software
www.elevatesoft.com
Fri, Oct 5 2018 3:25 AMPermanent Link

Pasquale

Web Pos srl

<<You can right-click to copy the text in any normal browser.  It just doesn't work in the IDE browser.>>

I just tried and it does not work Frown
Page 1 of 2Next Page
Jump to Page:  1 2
Image