My CustomGraphicsGroup disappears after confirming a messagebox
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I might be misunderstanding CustomGraphicsGroup life cycle. I created a Command, when the command is created, I create a CustomGraphicsGroup and draw on it. But at various times my CustomGraphicsGroup disappears from the display.
- if I confirm a messagebox()
- if I change the visibility of a body
- if I change the visibility of the origin (here is a demo: http://recordit.co/ussDOdkA6P the red lines are on the custom graphics)
Even if the graphics is not visually displayed, it's still in the collection of customGraphicsGroups, and its properties isVisible and isValid are still true.
There are no events for me to understand the expected life cycle, I am a bit puzzled. My intended behavior was that the graphics would be here until I remove it, and that I would add and remove objects from it to change its appearance, and delete it altogether when I'm done with it.
Thanks for your help.
Nicolas.