Hello,
thanks for the hint. Replacing the closing handler can be done easy:
final WindowPanel w = new WindowPanel("My Frame");
w. addWindowClosingHandler(new ClosingHandler() {
public void onWindowClosing(ClosingEvent event) {
InfoPanel.show(w.getCaption(), "onWindowClosed()");
}
});
Adding buttons (maximize, minimize) is also no problem like described
in the documentation.
but replacing the window close button seems not so easy because the
closing button will be set in the constructor of WindowPanel like
follows:
...Constructor of WindowPanel:
...
// (ggeorg) Issue 51
final ImageButton closeBtn = new ImageButton(new
Image(image.getUrl(),
image.getOriginLeft(), image.getOriginTop(), image.getWidth(),
image.getHeight()));
,,,
I did not find a accessible method for replacement of the predefined
close button in WindowPanels class.
Maybe there is a way for the replacement of the close button that I
don't know?
Kind regards
Bernhard