Closed scabros closed 8 years ago
just to clarify, to close the new opened window, i must drag it to another region of the canvas where there has not been another windows previously...
ok, i found a "workaround" (or maybe is just the correct way of doing this):
i must call .destroy() method for every component of the window.
so, if i have a window with one header title, one layout, one label and another layout with four buttons i do:
EZGUI.components.btnone.destroy(); // button
EZGUI.components.btntwo.destroy(); // button
EZGUI.components.btnthree.destroy(); // button
EZGUI.components.btnfour.destroy(); // button
EZGUI.components.ttl.destroy(); // header title
EZGUI.components.encdesc.destroy(); // description label
EZGUI.components.btnsLay.destroy(); // layout containing buttons
hope this helps someone with the same problem!
@alaa-eddine , maybe this could be added to the documentation wiki?
hi, i cant figure exactly which is the correct procedure to close a window clicking on a button inside that window and at the same time, open another window, with a different id of course. right now i am trying this (TplObj is the window template object):
and my closeEncounter:
this, in some way, does dissapear the window. but it doesnt "unbind" the click from the btnclose region. how should i do this?
thanks in advance.