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: Can rich text be drawn on a canvas?
Topic Summary:
Created On: 9-May-2007 15:15
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.
 9-May-2007 15:15
User is offline View Users Profile Print this message


Sjors de Leeuw

Posts: 23
Joined: 18-Apr-2007

When creating a layout DXL column, one can show rich text with colours by using function displayRichWithColour.
Can rich text also be drawn on a canvas?

Background of this question:
I've created a layout DXL column. The script gets the (virtual) canvas with

DBE dCanvas = getCanvas

On dCanvas, I can draw text with
draw(dCanvas, xPos, yPos, <text>)

However, in my case, <text>contains rtf formatting (generated with the diff function).
Now I would like to draw this rich text formatted string on dCanvas.

Is this possible?

Thanks in advance!

Edited: 9-May-2007 at 15:54 by Sjors de Leeuw
Report this to a Moderator Report this to a Moderator
 9-May-2007 15:44
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Sjors,

afaik this unforunately not possible.

I see two alternative ways:
(1) loop trough parts of RTF and apply formating yourself -> hard to do and slowly
(2) use displayRichWithColor combined with canvas usage in LDXL
--> I've used this to draw my own "change bars" with rectangle (canv, -5, 0, 3, height (canv));

Good luck,

Greetings
Reik

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


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 10-May-2007 08:21
User is offline View Users Profile Print this message


Sjors de Leeuw

Posts: 23
Joined: 18-Apr-2007

Hi Reik, Thanks for the answer, I feared already that it won't be possible. Maybe somebody else knows some solution. Anyway, I agree with you. 1) is too much effort, 2) is possible, but doesn't support absolute positioning, which is required. Greets Sjors
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.