[gme-users] Changing the color of diagram objects?

Zoltan Molnar zolmol at isis.vanderbilt.edu
Fri Feb 10 10:04:50 CST 2006


That popup is not an error. It is just a warning, that custom STL library (preferably STLport) has to be used for VC versions <= 6.0.
 
Another tip: try "build" instead of "compile" on the project.
 
Zoli

-----Original Message-----
From: gme-users-bounces at list.isis.vanderbilt.edu [mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Jesper Berthing
Sent: Friday, February 10, 2006 8:15 AM
To: gme-users
Subject: SV: [gme-users] Changing the color of diagram objects?


Hi,

 

I have started looking at the GReAT source code as Attila recommended, but I am not able to compile the project. Therefore I have used the tutorial lesson 3, in order to test my program setup.

 

I am experiencing the following problem:

I am using Visual Studio C++ Express and I am not able to compile the created Builder Object Network II source code.

 

It gives me a pop-up that I have attached. 

Is this why I cannot compile the project or it is not compatible with my version of Visual Studio?

 

Thanks,

Jesper


  _____  

Fra: gme-users-bounces at list.isis.vanderbilt.edu på vegne af Zoltan Molnar
Sendt: to 2/9/2006 3:50
Til: gme-users
Emne: RE: [gme-users] Changing the color of diagram objects?


Hi,
 
I think an add-on (GME component) listening to OBJEVENT_ATTR event code (Attribute changed) could do that.
Preferences (including color) are stored in the object registry (right click, then Registry).
The "color" node in case of models will indicate the filling color of the model box.
 
This can be implemented in C++ as a Raw COM component. I don't know if Java BON supports add-ons.
Zoli

-----Original Message-----
From: gme-users-bounces at list.isis.vanderbilt.edu [mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Jesper Berthing
Sent: Thursday, February 09, 2006 4:39 AM
To: gme-users
Subject: [gme-users] Changing the color of diagram objects?


Hi, 

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.

 

Is it possible to change the color of an object in the diagram, depending on an attribute value of that object.

Like:

Model.Enable can be set to true or false, is it possible to do:


"if self.Enable then let self.color = 0x0000FF else self.color = 0x000000 endif" as a 

1. Constraint attached to the object? or

2. Can I use a "if then else" in the general preference field of the object? or

3. Use the Java BON interface to do so?

If it is possible how could it be done?


I know the above will not work I have tried it ;-)

Regards,
Jesper




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20060210/61e55846/attachment.htm


More information about the gme-users mailing list