![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Get selection in object text Topic Summary: Created On: 10-Jan-2007 13:31 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
Hi Henrik,
you may use the following function to do your job: callStdItem_ (inplaceTextBoldItem); alternatively you can use following items:
Greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
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.
|
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Get selection in object text
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.