<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=ltr xmlns:o = "urn:schemas-microsoft-com:office:office"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=727474314-09022006><FONT face=Arial color=#0000ff
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=727474314-09022006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=727474314-09022006><FONT face=Arial color=#0000ff size=2>I
think an add-on (GME component) listening to OBJEVENT_ATTR event code (Attribute
changed) could do that.</FONT></SPAN></DIV>
<DIV><SPAN class=727474314-09022006><FONT face=Arial color=#0000ff
size=2>Preferences (including color) are stored in the object registry (right
click, then Registry).</FONT></SPAN></DIV>
<DIV><SPAN class=727474314-09022006><FONT face=Arial color=#0000ff size=2>The
"color" node in case of models will indicate the filling color of the model
box.</FONT></SPAN></DIV>
<DIV><SPAN class=727474314-09022006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=727474314-09022006><FONT face=Arial color=#0000ff size=2>This
can be implemented in C++ as a Raw COM component. I don't know if Java BON
supports add-ons.</FONT></SPAN></DIV>
<DIV><SPAN class=727474314-09022006><FONT face=Arial color=#0000ff
size=2>Zoli</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
gme-users-bounces@list.isis.vanderbilt.edu
[mailto:gme-users-bounces@list.isis.vanderbilt.edu] <B>On Behalf Of </B>Jesper
Berthing<BR><B>Sent:</B> Thursday, February 09, 2006 4:39 AM<BR><B>To:</B>
gme-users<BR><B>Subject:</B> [gme-users] Changing the color of diagram
objects?<BR><BR></FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2><FONT face="Times New Roman">
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: black">Hi, </SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: black">I have raised the question in one of my
previous responses to the list, but I have not received any reply.
Therefore I will try again, because it seems to be a simple
question.</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT
size=3> <o:p></o:p></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt">Is it possible to change the color of an object in the
diagram, depending on an attribute value of that object.<SPAN
style="COLOR: black"><BR><BR>Like:</SPAN></SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: black">Model.Enable can be set to true or
false, is it possible to do:<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: black"><BR>"if self.Enable then let self.color
= 0x0000FF else self.color = 0x000000 endif" as a <o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: black">1. Constraint attached to the object?
or<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: black">2. Can I use a "if then else" in the
general preference field of the object? or<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: black">3. Use the Java BON interface to do
so?<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: black">If it is possible how could it be
done?<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 10pt; COLOR: black"><BR>I know the above will not work I
have tried it ;-)<BR><BR>Regards,<BR>Jesper</SPAN><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"><o:p></o:p></SPAN></P></FONT></FONT><FONT
face=Arial color=#000000 size=2><BR></DIV></BLOCKQUOTE></FONT></BODY></HTML>