Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Get selection in object text
Topic Summary:
Created On: 10-Jan-2007 13:31
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 10-Jan-2007 13:31
User is offline View Users Profile Print this message


Henrik Morast

Posts: 4
Joined: 17-Nov-2005

Does anyone know how to get information regading current selected text in the standard UI. Primarily I need it for Object Text in the main column.

What I want is the eqvivalent (or work around) of the perm "get (selected text)" below that works in a DBE of type text. However I want it for the standard user interface main column.

I guess something like this must be used when applying rich text formatting like bold or italics to a selected piece of text, which in fact is what I am trying to do.
Report this to a Moderator Report this to a Moderator
 11-Jan-2007 08:46
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Henrik,


you may use the following function to do your job:
callStdItem_ (inplaceTextBoldItem);
alternatively you can use following items:

  • inplaceRejectItem
    Discard Changes
  • inplaceAcceptItem
    Accept Changes
  • inplaceHeadingItem
    Edit Heading
  • inplaceTextItem
    Edit Text
  • inplaceAttrItem
    Edit Next Attribute
  • inplaceResetAttrItem
    Reset to default
  • inplaceTextBoldItem
    Bold the current text.
  • inplaceTextItalicItem
    inplaceTextUnderlineItem
  • inplaceTextStrikeThruItem
    Strikethrough
  • inplaceTextBulletItem
    Bullets
  • inplaceTextIncreaseIndentItem
    Increase Indent Increase indent
  • inplaceTextDecreaseIndentItem
    Decrease Indent Decrease indent


Greetings
Reik

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 12-Jan-2007 15:23
User is offline View Users Profile Print this message


Henrik Morast

Posts: 4
Joined: 17-Nov-2005

thanks Reik, a good set of functions. However it doesn't solve my problem. What I really wanted to do was to create a colour markup feature, applying rich text in the main column. Sorry I wasn't clear about thi in my question. So I'm still interested in any ideas.
Report this to a Moderator Report this to a Moderator
 4-Jun-2007 11:19
User is offline View Users Profile Print this message


Frederic GIL

Posts: 7
Joined: 19-Aug-2005

Hi,

I have a solution for this problem.

After user selection in the "Object Text", do this code :

callStdItem_(clipCopyFlatItem) //-- Put selection into clipboard

RTF_string__ sc = richClip //-- get text in clipboard

print stringOf(sc) "" //-- Show Selected text.

Bye,

Frédéric GIL.

Edited: 4-Jun-2007 at 11:19 by Frederic GIL
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.