[gme-users] Redraw decorator when object attribute changes
Matthew J. Emerson
mjemerson at isis.vanderbilt.edu
Sun Mar 20 17:25:28 CST 2005
Hi Yi Chu,
I don't much about decorators, but you might consider looking at the
decorator code for the UML class diagrams environment which ships with
GME. That decorator changes the visualization of each Class instance to
reflect the attribute names and types listed in a string attribute.
--Matt
_____
From: Yi Chu [mailto:y.chu at sympatico.ca]
Sent: Sunday, March 20, 2005 1:31 PM
To: gme-users
Subject: [gme-users] Redraw decorator when object attribute changes
Hello,
I wanted to change the shape of the decorator for an atom object in my
model according to the current value of an attribute. I am thinking of
using the Draw() method of the CDecorator class that is generated with
"decorkit.zip" to do the work. Is it possible that I get access to the
current object's attribute in this Draw() method? I tried to use
"m_mgaFco->get_AttributeByName()" but it seemed does not work for me.
Many thanks in advance.
Yi Chu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20050320/aaab6278/attachment.htm
More information about the gme-users
mailing list