PDA

View Full Version : Dialog: Close -> Minimize



fthamura
15 Jan 2007, 1:48 AM
i just finding idea to make the SimpleDialog implementatio work like Desktop.

if i close it, it move to the panel, and an icon show up.

or may be i can add new button, minimize to make it move if we minize it, of course to the desktop.

my question is:

if i want to implement like this, is the logic behind it like this:

1. i make 2 implementation, small icon (hidden) and a dialogbox show up.
2. if we close/minize it, the small icon show up, and the dialog gone.
3. if we click the icon, the dialog generate automatically

for me, that will be cool if we can make the icon is not initiate in the begiining of the html under preload.

i just think also, is the icon in panel/desktop work smiliar with dialog box, but in smaller size, 16x16.

Animal
15 Jan 2007, 2:29 AM
You've started this discussion before: http://www.yui-ext.com/forum/viewtopic.php?t=2111

mbarto
19 Jan 2007, 12:02 PM
I've done something similar. You can find an example here: http://www.infosia.it/test/minimize.html.

In short, I extended YAHOO.ext.BasicDialog, creating YAHOO.ext.MinimizableDialog. This extension accepts a new config option (minimizable: true ) that adds a minimize button to the header of the dialog. Then I created a Dockbar, where the minimized dialogs are listed (I use the dialog header text but it would be easy to use an icon) and can be restored clicking on the minimized button.

I hope this can help.

Mauro

Animal
19 Jan 2007, 12:05 PM
Nice.

I'm really hoping Jack will come up with a Window implementation soon which can be maximized in a parent Element, minimized and closed - all optional on config.