About Store Forum Documentation Contact



Post Reply 
Multiline text selection/clipboard operations
Author Message
SatriAli Offline
Member

Post: #1
Multiline text selection/clipboard operations
Hi,

First of all, thank you for your excellent work on this engine Esenthel!

Here's my problem : I'm currently making a developper console for an upcoming project, and I'd like to be able to select part of the output, and copy it to the clipboard.

I know TextLine supports clipboard operations, but I've found no way to get it to render multiple lines (not surprising I guess, it is called TextLine after all...or maybe I missed something obvious?).

Splitting the output into individual lines and using a TextLine for each isn't an option, as I need to be able to select anything, from a character, to the entire console contents.

Is there any way to do this using built-in functionnality?

If not, any pointers as to how I'd go about implementing this behaviour myself?

Note : the text needs to by copyable using ctrl+c, but not user-editable in any way.

Thanks in advance.
06-30-2010 12:19 PM
Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #2
RE: Multiline text selection/clipboard operations
Hello,

you can use D.text(Rect &rect,..) to draw text with multiple lines, however it will not allow you to select and copy it.

there is a class marked for future (TextBox) which would serve that purpose, but it's not yet developed.
06-30-2010 12:52 PM
Find all posts by this user Quote this message in a reply
SatriAli Offline
Member

Post: #3
RE: Multiline text selection/clipboard operations
That was quick. If this is what support priority 1 is like, goodness knows what licensed developpers get!

Thanks for the headsup, I'll leave it as it is until you get round to writing TextBox. It wasn't exactly urgent anyway.
06-30-2010 01:03 PM
Find all posts by this user Quote this message in a reply
olej Offline
Member

Post: #4
RE: Multiline text selection/clipboard operations
Any chances for TextBox being implemented in the near future? ;-)
09-05-2011 11:02 AM
Find all posts by this user Quote this message in a reply
Post Reply