[gme-users] Add-on : how to visually mark a node programatically

Toth, Csaba csaba.toth at Vanderbilt.Edu
Mon Feb 28 11:39:16 CST 2011


Even connections are selectable programmatically for some time now (Kiran's project required it).
If an item is a model box, so it is drawn programatically, then the gradient colors should be able to changed, but I don't have a code.

-----Original Message-----
From: gme-users-bounces at list.isis.vanderbilt.edu [mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Peter Volgyesi
Sent: Monday, February 28, 2011 11:20 AM
To: A list for GME users to share thoughts and discuss bugs and fixes.
Subject: Re: [gme-users] Add-on : how to visually mark a node programatically

Check out

project->showFCO(FCO fco);

in BON2.

--
peter



On Mon, Feb 28, 2011 at 10:47 AM, Matthew Eby <meby at isis.vanderbilt.edu> wrote:
> Also another option is to change the icon on your FCO using BON:
>
>        BON::FCO foo =
> project->getRootFolder()->findByPath("/path/to/fco");
>        foo->getRegistry()->setValueByPath("/icon", "newicon.bmp");
>
> newicon.bmp should be in your icons folder.
>
> -----Original Message-----
> From: gme-users-bounces at list.isis.vanderbilt.edu
> [mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf Of Akos
> Ledeczi
> Sent: Monday, February 28, 2011 10:29 AM
> To: dan.simkins at workflow-science.com; gme-users
> Subject: Re: [gme-users] Add-on : how to visually mark a node
> programatically
>
> No, you would have to do some COM programming.
>
> The easiest might be doing what the HFSM example distributed with GME
> does. As the interpreter (I believe it is BON) executes the state
> machine, it highlights the current state. Check out the code to see how
> it's done.
>
> Good luck, Akos
>
> On 2/28/2011 10:18 AM, Dan Simkins wrote:
>> Hi Akos,
>>
>> Thanks for your response ... is this available in the BON/BON2
>> packages ... I am struggling to find the right method.
>>
>> Kind regards
>>
>> Dan
>>
>> On 28/02/2011 16:11, Akos Ledeczi wrote:
>>> You can also select a node programatically via the GME COM interface
>>> as if the user click on it.
>>>
>>> On 2/28/2011 10:03 AM, James H. Hill wrote:
>>>> Hi Dan,
>>>>
>>>> On Feb 28, 2011, at 10:58 AM, Dan Simkins wrote:
>>>>
>>>>> Dear All,
>>>>>
>>>>> I am writing a Add-on and wish to visually mark a node somehow,
> e.g.
>>>>> under specific conditions, highlight a node on the diagram. Is this
>
>>>>> possible to do programatically ? Any help or assistance or pointers
>
>>>>> to documentation that would help, would be great.
>>>>>
>>>> This is possible using a GME decorator.
>>>>
>>>> HTH,
>>>>
>>>> James
>>>>
>>>>> Many thanks and kind regards
>>>>>
>>>>> D
>>>>> _______________________________________________
>>>>> gme-users mailing list
>>>>> gme-users at list.isis.vanderbilt.edu
>>>>> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>>>> _______________________________________________
>>>> gme-users mailing list
>>>> gme-users at list.isis.vanderbilt.edu
>>>> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>>> _______________________________________________
>>> gme-users mailing list
>>> gme-users at list.isis.vanderbilt.edu
>>> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>
_______________________________________________
gme-users mailing list
gme-users at list.isis.vanderbilt.edu
http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users


More information about the gme-users mailing list