Karen,

I have attached a script to this e-mail that colors a class based on its
stereotype.  The basic idea behind assigning colors using the REI should be
the same.  Take a look at this script and see if you note anything different
about your approach.

Regards

Vishu

**********

Annamalai "Vishu" Viswanathan  --  [EMAIL PROTECTED]
Rose Technical Support Engineer

Rational Customer Service - Committed to Service Excellence
SCP Certified:  http://www.rational.com/support/scp.jsp

Rational User Conference 2002.....Freedom to Create!
Call for Papers Now Open at http://www.rational.com/ruc
August 18-22, 2002
Lake Buena Vista, Florida

**********

-----Original Message-----
From: (Karen) Muan Yong NG [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 03, 2002 2:03 AM
To: [EMAIL PROTECTED]
Subject: (ROSE) Coloring the message icon in the Sequence Diagram (fwd)


Hi all.

I'm trying to change the color for the message icon in the Sequence
Diagram using the VB code below. However,nothing changes after i run the
code. Does anyone know why?


        Dim theMessage As Message
        Dim theView As RoseItemView
        Dim theRoseItem As RoseItem

Set theMessage = theSD.CreateMessage (signal,thisSourceObj, thisSourceObj,
seqCount)
               
If theMessage.canTypeCast(theRoseItem) Then
                       
        Set theRoseItem=theMessage.TypeCast(theRoseItem)
        Set theView = theSD.GetViewFrom(theRoseItem)                   
        theView.LineColor.red = 100
        theView.LineColor.green = 255
        theView.LineColor.blue = 100
        theView.FillColor.red = 100
        theView.FillColor.green = 255
        theView.FillColor.blue = 100
        theSD.update
End If




Karen


************************************************************************
* 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
*************************************************************************


Attachment: ClassStereotypeColorizer.ebs
Description: Binary data

Reply via email to