[转]Flex中TitleWindow居中方法
2011-04-19 11:20
337 查看
(1)
var popUp:content=content(PopUpManager.createPopUp(this,content,true));
popUp.width = 500;
popUp.height = 300;
popUp.showCloseButton=true;
PopUpManager.centerPopUp(popUp);
(2)
var popwin:TitleWindow = new TitleWindow();
PopUpManager.addPopUp(popwin,this,true);
PopUpManager.centerPopUp(this);
(3)
<mx:TitleWindow id="titleWindow_popUp" status="单击图片选择聊天表情" height="200" showCloseButton="true" creationComplete="init();">
private function init():void
{
// 可以通过this.x ,this.y 来设置位置
this.x = Capabilities.screenResolutionX/2-this.width/2;
this.y = Capabilities.screenResolutionY/2-this.height/2 - 50;
}
var popUp:content=content(PopUpManager.createPopUp(this,content,true));
popUp.width = 500;
popUp.height = 300;
popUp.showCloseButton=true;
PopUpManager.centerPopUp(popUp);
(2)
var popwin:TitleWindow = new TitleWindow();
PopUpManager.addPopUp(popwin,this,true);
PopUpManager.centerPopUp(this);
(3)
<mx:TitleWindow id="titleWindow_popUp" status="单击图片选择聊天表情" height="200" showCloseButton="true" creationComplete="init();">
private function init():void
{
// 可以通过this.x ,this.y 来设置位置
this.x = Capabilities.screenResolutionX/2-this.width/2;
this.y = Capabilities.screenResolutionY/2-this.height/2 - 50;
}
相关文章推荐
- Flex 弹出窗口TitleWindow拖拽范围设置方法
- Flex TitleWindow 居中--自定义 PopUpEffect
- android5.0使用requestWindowFeature(Window.FEATURE_NO_TITLE)隐藏标题栏的报错的解决方法
- Android取消标题方法和this.requestWindowFeature(Window.FEATURE_NO_TITLE)App报错解决方法
- Creating an undraggable TitleWindow container in Flex
- Flex中如何通过showCloseButton属性,控制TitleWindow右上角关闭按钮有效/无效
- Flex Air TitleWindow 拖动范围控制
- flex 自定义组件(TitleWindow)与组件(TitleWindow)之间交互传值
- requestWindowFeature(Window.FEATURE_NO_TITLE)无效解决方法
- flex titlewindow 拖动 父窗口范围
- Android使用requestWindowFeature(Window.FEATURE_NO_TITLE)方法去除标题无效解决办法
- Flex中如何利用closeButtonSkin或closeButtonUpSkin, closeButtonOverSkin, closeButtonDownSkin, closeButtonDisabledSkin样式,改变TitleWindow容器的
- Flex 4 - TitleWindow + Display Icon
- Flex中通过headerHeight风格设置TitleWindow容器(container)的header部高度的例子
- easyui 中iframe嵌套页面,大弹窗自适应居中的解决方法。$('#win').window()
- 再论Flex中TitleWindow关闭按钮CloseButton的定制问题
- Flex中TitleWindow传值思路及实现
- flex外部自定义组件TitleWindow对话框与主程序之间的通信
- requestWindowFeature(Window.FEATURE_NO_TITLE)无效解决方法
- requestWindowFeature(Window.FEATURE_NO_TITLE)无效解决方法