![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: How do I apply BOLD format to existing string Topic Summary: Created On: 24-Oct-2002 13:49 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
The code I have a present is this
s = probeRichAttr_(othero,"Object Text", false) if (!null s){displayRich s} This works well and does display the correct text from an outlink. What I wish to do is apply bold formatting to the string (s). I have searched the DXL Ref Man and drawn a blank. Please Help. |
|
![]() |
|
![]() |
|
Try
{displayRich "{\\b" s "}"} |
|
![]() |
|
![]() |
|
Thanks for the reply, but this just displays the string in standard text style...
...any other ideas ? |
|
![]() |
|
![]() |
|
Anyone ??
|
|
![]() |
|
![]() |
|
Assignment (rich text) in the DXL reference manual may help you.
|
|
![]() |
|
![]() |
|
s = probeRichAttr_(othero,"Object Text", false)
if (!null s) s = richText "{\\b "s"}" |
|
![]() |
|
![]() |
|
Richard,
Sylvia is correct. Note the space is REQUIRED after the opening tag, hence "{\\b " instead of "{\\b". Vincent's example would have worked except for the missing space (certainly a typo). Now that us DXL junkies are back from the recent Telelogic UGC in Vegas, questions should be answered at the usual pace. ------------------------- Michael Sutherland michael@galactic-solutions.com http://galactic-solutions.com |
|
![]() |
|
![]() |
|
Sylvia,
Thanks for the reply... I tried what you suggested and made some progress. The string still does not display in BOLD but does display a lot of markup tags before and after the string itself. Do I need to turn richtext on somehow. I am using DOORS 6.0 SR1 by the way. |
|
![]() |
|
![]() |
|
I am assuming that you are trying to "print" the string. The print function doesn't seem to do richtext.
doing the following correctly sets the object text to bold: Object o = current string s = o."Object Text" print s "\n" o."Object Text" = richText "{\\b "s"}" However, adding the following doesn't print the string to the DXL window as RichText s = o."Object Text" print s "\n" If you create a DXL attribute (in this case called RT), you can display the string in that attribute as bold. Object o = current string s = o."Object Text" o."RT" = richText "{\\b "s"}" s = o."RT" displayRich s "\n" ------------------------- Gyan Penrose-Kafka Requirements Management Consultant gyan@zenmonkey.net Edited: 29-Oct-2002 at 18:25 by Gyan Penrose-Kafka |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
How do I apply BOLD format to existing string
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.