Hi,
I my main, I have 2 panels : a content panel (with no background) and an overlay StyledPanel (which is visible when I trigger it)
StyledDesktop desktop = new StyledDesktop();
final Panel contentPanel = new Panel();
MyContainer container= new MyContainer ();
contentPanel.setWidget(container);
contentPanel.setFocus(container);
contentPanel.showFullScreen(desktop);
desktop.setActivePanel(contentPanel);
final StyledPanel overlayPanel = new StyledPanel() {
@Override
public boolean handleEvent(int event) {
final Widget focus = contentPanel.getFocus();
if (focus != null) {
focus.handleEvent(event);
return focus.handleEvent(event);
}
return super.handleEvent(event);
}
};
overlayPanel.setEventHandler(contentPanel.getEventHandler());
overlayPanel.addClassSelector(PocClassSelectors.OVERLAY_PANEL);
myIndicator = new FloatingIndicator();
overlayPanel.setWidget(myIndicator);
overlayPanel.showFullScreen(desktop);
desktop.setActivePanel(contentPanel);
desktop.show();
During animation, the screenshot contains my overlay panel even if it is still hidden.
This problem is solved when the content panel is a StyledPanel instead of Panel, because of the colored plainBackground.
Is there a solution to create a screenshot without this hidden panel (keeping my no background panel) ?
Regards,
Elias