Hi.
I have a problem with Dhtmlx Windows.
My window’s minimize function doesn’t work with web skin. Center function works fine. Close function too.
My sumarized code is :
…
ancho = 200;
alto = 350;
x = 750;
y = 100;
…
dhxWins.setSkin(‘web’);
win = dhxWins.createWindow(‘2’, x, y, ancho, alto);
win.bringToTop();
win.button(‘park’).hide();
win.button(‘close’).hide();
win.button(‘minmax1’).show();
win.button(‘minmax1’).attachEvent(‘onClick’, temp);
dhxAccord = win.attachAccordion();
dhxAccord.addItem(“item1”, “Filtros para consulta”);
dhxAccord.addItem(“item2”, “Tematico”);
dhxAccord.cells(“item1”).setIcon(‘find.png’);
dhxAccord.cells(“item2”).setIcon(‘exclamation.png’);
dhxAccord.cells(“item1”).attachObject(objeto);
dhxAccord.cells(“item1”).open();
dhxAccord.cells(“item2”).attachObject(objeto3);
…
function temp(){
dhxWins.window(‘2’).minimize();
}
I appreciate your help
Thank you
Nelson S.
Hello,
In your case window already minimized.
Window have 2 state - minimized (by the default after creation) and maximized (fullscreened). You window is already minimized.
Probaly you mean “park” feature?
Probably.
Maybe the windows is minimized, but I see it with given dimensions.
Minimized state is when I see only tittle bar? It’s that I need.
I need two states : The window with size defined (for example 200x500px), and minimized (or “park” ?) when I only see tittle bar.
I don’t need maximized state.
Do you understand me?
Appreciate your help.
So you need to call denyResize() method.
Window will keep dimension and parkable (just header visible).