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: Attribut type color <-> Canvas color
Topic Summary:
Created On: 21-Sep-2004 16:22
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.
Answer This question was answered by Antonio Norkus, on Thursday, September 23, 2004 7:59 AM

Answer:
Firstly, at.colours is an array, so to get the colour of the first value in the attribute type:

int col = at.colours[0]

Secondly, you need to check whether real or logical colours are used for for the attribute type using:

bool getRealColourOptionForTypes()

If it is real, then you should use realColour(), otherwise you should use colour() to set the canvas to a logical colour.

Antonio.
 21-Sep-2004 16:22
User is offline View Users Profile Print this message


Frank Held

Posts: 14
Joined: 16-Jul-2004

Hi fellows,
I'd like to colour a canvas element similar an enumeration element. I tried
int col = at.colours
and
realcolor(cnv, i)
But it does not work. It seems that there is an different colournumbering between datatypes and canvaselements. Is conversion between type an canvas possible?
Thanks

-------------------------
Frank
Report this to a Moderator Report this to a Moderator
 22-Sep-2004 12:15
User is offline View Users Profile Print this message


Antonio Norkus

Posts: 109
Joined: 28-Jun-2003

Answer Answer
Firstly, at.colours is an array, so to get the colour of the first value in the attribute type:

int col = at.colours[0]

Secondly, you need to check whether real or logical colours are used for for the attribute type using:

bool getRealColourOptionForTypes()

If it is real, then you should use realColour(), otherwise you should use colour() to set the canvas to a logical colour.

Antonio.

Edited: 22-Sep-2004 at 12:16 by Antonio Norkus
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.