[gme-users] Attaching a Decorator to a top-level model (model sheet)

Kevin Smyth kevin.m.smyth at gmail.com
Tue Nov 13 11:07:54 CST 2018


Hi Cinthya,

GME does not support customization of the right-click menu on blank space
in the model editor.

I'd suggest using an interpreter (toolbar item) for this.

Kevin

On Tue, Nov 13, 2018 at 10:30 AM Cinthya Lopez <Cinthya_K_Lopez at raytheon.com>
wrote:

> Hello,
>
>
>
> I have implemented a Decorator that captures the mouse double-click event
> and the mouse right-click event to access a context menu item I created. I
> have been using this decorator with atoms in my model with no problems.
> Now, I am trying to attach the same decorator to a top-level model (what I
> mean by top-level is that there is no object drawn for the model, the model
> can just be viewed as a sheet). I am able to attach this decorator to other
> non top-level models and I am able to see my context menu item when I
> right-click. I don’t expect the double-click event to work in model since
> that event is already being used to open a model but I do expect the
> context menu item to show.
>
>
>
> My question is: why doesn’t my context menu item show when I right-click
> on my top-level model? I am right-clicking on a black space on the model
> sheet it this case. Is this a special case? Do I need to create a separate
> decorator? My current decorator inherits from IMgaElementDecorator and I am
> using all the functionality of the MGA.BoxDecorator except the two mouse
> events I am interest in.
>
>
>
> Thank you,
>
> Cinthya
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/cgi-bin/mailman/listinfo/gme-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20181113/c17a7c56/attachment.html>


More information about the gme-users mailing list