>
> 1) What's the difference?

DialogBox has a caption bar and support dragging, making it more like a
window.  DialogBox is a subclass of DecoratedPopupPanel.

 2) Which are the PROs and CONs of each one?

Both have the same set of methods.  DialogBox supports a caption bar, so if
you need one, use that.

3) Is it possible to extend them in order to add the three
> icons 'minimize'/'maximize'/'close' like a normal desktop window?

Sort of with DialogBox.  You could try something like the following:
SafeHtml caption = SafeHtmlUtils.fromTrustedString("<div><span>My
Caption</span><image src="_"/><image src="-"/><image src="X"/></div>"); //
Obviously, you need real images for min/max/close
dialogBox.setHtml(caption); // Set the caption bar contents
dialogBox.getCaption.addMouseDownHandler(new MouseDownHandler() {
  public void onMouseDown(MouseDownEvent event) {
    // Figure out which button was clicked and do the appropriate thing.
  }
});

Another option is to use LayoutPanels to position a popup exactly where you
want on the screen.  The disadvantage is that you must give the LayoutPanel
an explicit size, it will not expand to fit the contents.  The advantage is
that its very easy to reposition the LayoutPanel and animate the
transitions.

Thanks,
John LaBanca
[email protected]


On Fri, Nov 5, 2010 at 4:01 AM, alexoffspring <[email protected]>wrote:

> - DialogBox can be Dragged and Dropped by default while the DPP
> cannot.
> - DB has center() and SetText() Method; DPP uses show().
> - I cannot see the possibility to extend them in order to have the
> 'minimize'/'maximize'/'close'   button like a desktop window (as in
> SmartGWT).
>
> Anymore?
>
>
>
> On 3 Nov, 09:55, alexoffspring <[email protected]> wrote:
> > 1) What's the difference?
> >
> > 2) Which are the PROs and CONs of each one?
> >
> > 3) Is it possible to extend them in order to add the three icons
> > 'minimize'/'maximize'/'close' like a normal desktop window?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to