Indigo Rose Software
  #1  
Old 01-30-2008
yosik's Avatar
yosik yosik is offline
Indigo Rose Customer
 
Join Date: Jun 2002
Location: Israel
Posts: 1,863
RichText.GetSelectedText

It would be very helpfull to be able to highlight a peice of text in a RichText object and set it as a string value for a variable. The way it stands now, you can only get the index values of the start and end of a selection.
Furthermore, it would also be interesting to be able to get that selection as elements of a table, one per line, similar to TextFile.ReadToTable.

Yossi
Reply With Quote
  #2  
Old 01-30-2008
Darryl's Avatar
Darryl Darryl is offline
Indigo Rose Staff Member
 
Join Date: Jul 2001
Location: Indigo Rose Software
Posts: 1,602
Thanks for the suggestion Yossi.

REF: 17187
__________________
Darryl
Indigo Rose Corporation

Product Guides: AMS70 | SUF80 | TU30 | VP30 |MSIFACT |DeltaMAX
Reply With Quote
  #3  
Old 01-30-2008
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
Unless you're saying you want a built in function, you can use String.Mid with the Selection's Start and (End - Start) to grab what you have selected.
Reply With Quote
  #4  
Old 01-30-2008
yosik's Avatar
yosik yosik is offline
Indigo Rose Customer
 
Join Date: Jun 2002
Location: Israel
Posts: 1,863
Yes you can, Worm (and thanks for helping in this), but I think that there should be a built-in action.
Even if you could use the Clipboard action and copy the selected text into it, you can only paste it. You cannot put the clipboard content into a variable (and actually, you cannot do the opposite: read a variable value into the clipboard).

Yossi
Reply With Quote
  #5  
Old 01-30-2008
SonG0han SonG0han is offline
Forum Member
 
Join Date: Dec 2003
Posts: 155
But you can.
Try this: Click on Project > Plugins... in the filemenu and enable the Clipboard Plugin.

This enables new actions like:
result = Clipboard.GetText(); -- put text from clipboard in a var
Clipboard.CopyText("My Text"); -- copy text into clipboard (can be a var)
Reply With Quote
  #6  
Old 01-30-2008
yosik's Avatar
yosik yosik is offline
Indigo Rose Customer
 
Join Date: Jun 2002
Location: Israel
Posts: 1,863
I stand corrected.
You are 100% right.
Thanks for pointing that out.

Yossi
Reply With Quote
  #7  
Old 01-30-2008
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
You were scaring me a little there Yos. I thought my memory was going. Maybe I need to paste a little more to my own clipboard
Reply With Quote
  #8  
Old 01-31-2008
yosik's Avatar
yosik yosik is offline
Indigo Rose Customer
 
Join Date: Jun 2002
Location: Israel
Posts: 1,863

I am looking for a memory compressing package. I could use additional space in my brain.....
Overload...Overwork...Over...everything... This is the result...


Yossi
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -6. The time now is 02:44 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software