if(instance._panel)instance._panel.invoke_event("clickclose");
return skin.get_text();
skin.set_text(value);
self._panel=value;
dialogframe.append_child(value);
self.MoveCenter();
//self._timeline=jsml.new_timeline()
//instance.set_opacity(30);
//self._timeline.add_onprogress(jsml.tween.make_number_property(instance,"opacity",70))
//self._timeline.set_timespan(500);
//self._timeline.start();
if(!self._timeline)return
self._timeline.pause();
self._timeline.dispose();
var value=self._panel;
var padding=dialogframe.get_padding();
var w=value.get_width()+padding[1]+padding[3];
var h=value.get_height()+padding[0]+padding[2];
var rect=jsml.get_body_rect();
if(jsml.mobile)
{
dialogframe.set_top(rect.top)
dialogframe.set_left(rect.left)
}
else
{
dialogframe.set_top(Math.floor( Math.max(0,rect.height-h)/2 ))
dialogframe.set_left(Math.floor( Math.max(0,rect.width-w)/2 ))
}
dialogframe.set_width(Math.min(w,rect.width));
dialogframe.set_height(Math.min(h,rect.height));
self._dialogcontainer=jsml.new_dialogcontainer();
self._dialogcontainer.SetPanel(self);
if(e.keyCode==27)self.invoke_event("clickclose");
self._dialogcontainer.set_visible(false);
setTimeout(function(){self._dialogcontainer.dispose();},1);
self.invoke_event("closing");
return self._dialogcontainer.get_title();
self._dialogcontainer.set_title(value);
self._dialogcontainer.mask.set_visible(false);
jsml.suppend_layout();
self.set_width(width);
self.set_height(height);
self._dialogcontainer.resize(width,height);
jsml.resume_layout();
sw||h>sh)
{
self.resize(Math.max(w,sw),Math.max(h,sh));
//recalc the height for flow controls
self.resize(Math.max(w,sw),self.get_demand_content_height());
}
jsml.resume_layout();
]]>
var rect=jsml.get_body_rect();
var maxw=Math.floor(rect.width*0.8);
var maxh=Math.floor(rect.height*0.8);
self.resize( Math.min(width+self.get_width(),maxw) , Math.min(height+self.get_height(),maxh) )