Excluding particular children from component snapshot

4 posts / 0 new
Last post
Mike
Offline
Last seen: 2 months 3 weeks ago
Joined: 27 Jan 2011 - 22:34
Excluding particular children from component snapshot

Hi,
I wish to make a Component snapshot, and using the Component::createComponentSnapshot makes perfect sense, except I need to exclude certain child windows from the snapshot.
Particularly, I must exclude any child window popups that actually include the functionality that creates the snapshot. (Yes, I HAVE to have a window ontop, that the user clicks on
to produce a snapshot.)

Is there any way other than making the unwanted child temporarily invisible? Surely Juce must have a traversion list somewhere to decide what to include and what to not include.

[Insert signature here]

jules
Offline
Last seen: 5 hours 3 min ago
Joined: 29 Apr 2013 - 18:37
Re: Excluding particular children from component snapshot

Well, it just uses the normal painting mechanism to draw the snapshot, so I think that making the unwanted comps invisible would be the only way to do it.

Mike
Offline
Last seen: 2 months 3 weeks ago
Joined: 27 Jan 2011 - 22:34
Re: Excluding particular children from component snapshot

Thanks. That's the way I do it now, and it appear to work. Is there any chance the component will "blink out" if it is made invisible+visible within the same call? I suppose it takes a message processing step to make the setVisible(false) call actually makeit invisble on screen. (?)

[Insert signature here]

jules
Offline
Last seen: 5 hours 3 min ago
Joined: 29 Apr 2013 - 18:37
Re: Excluding particular children from component snapshot

That's right - as long as you do all of your work within the same message callback, nothing will change on-screen.