![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Attribut type color <-> Canvas color Topic Summary: Created On: 21-Sep-2004 16:22 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() 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. | |
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Attribut type color <-> Canvas color
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.