Hello Alexander,

for 1)
Subviews are RoseItemViews within a RoseItemView (implementing the composite pattern). 
I think you get elements in a subview if you create a nested state within a state 
diagram, but I did not check
this. Unfortunately I cannot help you with the font of the attributes, and I do not 
know a view class for them.

for 2)
FillColor.blue is a RGB value (as the attributes for the other colors are). So if you 
assign true to it, you do not see a blue class. Otherwise Rose seems to select the 
nearest color from the basic
colors which you see if you open the fill color dialog. So

        Dim roseitem As RoseItemView
        Set roseitem = cat1.ClassDiagrams.GetAt(1).ItemViews.GetAt(1)
        roseitem.Font.blue = 255
        roseitem.FillColor.red = 255
        roseitem.FillColor.Green = 0
        roseitem.FillColor.blue = 0
        roseitem.FillColor.Transparent = true

gives you a real red class (this may depend on the color resolution of your desktop, 
of course) with a blue font. Note that the transparent attribute has to be set to 
true, to have the object NOT
transparent (but why?) and a call to the update method of the diagram may be needed.

Hope this helps

Thomas Loeffler
-----
Loeffler IT-Consulting GbR
Marienbader Str. 17
D-91207 Lauf
mailto:[EMAIL PROTECTED]
tel +49-9123-963575
fax +49-9123-963576


> "G�ntsch, Alexander" wrote:
> 
> Hello,
> 
> I try to change the layout of a class diagramm using REI/Automation. What I have 
>managed to do so far is to get the RoseItemView objects and therefore change the 
>class names to italic or change the
> fill color to some different color. Here are the problems:
> 
> 1) Is it possible to change font of individual attributes? BTW: What are SubViews?
> 
> 2) When I try to change the fill color I get strange results: For example with 
>FillColor.blue=true I get a yellow class box and so on...
> 
> Who canm help?
> 
> Alexander G�ntsch
> 
> 

-- 
Thomas Loeffler
mailto:[EMAIL PROTECTED]
phone: ++49 911 526 3423
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*    http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*    To: [EMAIL PROTECTED]
*    Subject: <BLANK>
*    Body: unsubscribe rose_forum
*************************************************************************

Reply via email to