flex 的titlewindow位置问题
怎么样自定义titlewindow的弹出位置??代码如下:<?xmlversion="1.0"encoding="utf-8"?><mx:Applicationcreat...
怎么样自定义titlewindow的弹出位置??代码如下:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application creationComplete="{init()}" fontSize="15" xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
public function showAdd():void{
var add:AddStudent=new AddStudent();
add.s=this;
PopUpManager.addPopUp(add,this,true);
PopUpManager.centerPopUp(add);
}
]]>
</mx:Script>
<mx:Button x="226" click="{showAdd()}" y="330" label="添加学生"/>
</mx:Application>
还有个添加学生页面,
<mx:TitleWindow showCloseButton="true" close="closeWin()" fontSize="16" xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="300" xmlns:bean="com.bean.*" title="增加学生">
<mx:Script>
<![CDATA[
public var s:school;
]]>
</mx:Script>
<mx:Button x="132" y="138" click="saveStudent()" label="添加"/>
<mx:Label x="62" y="52" text="学生姓名:"/>
<mx:TextInput id="stuNameInput" x="132" y="50"/>
<mx:Label x="62" y="86" text="学生年龄:"/>
<mx:TextInput id="stuAgeInput" x="132" y="84"/>
</mx:TitleWindow>
但是试过很多办法,也没实现设置
像这样的怎么设置titlewindow在school.mxml中显示的位置????
希望懂的给点意见~谢谢了 展开
<?xml version="1.0" encoding="utf-8"?>
<mx:Application creationComplete="{init()}" fontSize="15" xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
public function showAdd():void{
var add:AddStudent=new AddStudent();
add.s=this;
PopUpManager.addPopUp(add,this,true);
PopUpManager.centerPopUp(add);
}
]]>
</mx:Script>
<mx:Button x="226" click="{showAdd()}" y="330" label="添加学生"/>
</mx:Application>
还有个添加学生页面,
<mx:TitleWindow showCloseButton="true" close="closeWin()" fontSize="16" xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="300" xmlns:bean="com.bean.*" title="增加学生">
<mx:Script>
<![CDATA[
public var s:school;
]]>
</mx:Script>
<mx:Button x="132" y="138" click="saveStudent()" label="添加"/>
<mx:Label x="62" y="52" text="学生姓名:"/>
<mx:TextInput id="stuNameInput" x="132" y="50"/>
<mx:Label x="62" y="86" text="学生年龄:"/>
<mx:TextInput id="stuAgeInput" x="132" y="84"/>
</mx:TitleWindow>
但是试过很多办法,也没实现设置
像这样的怎么设置titlewindow在school.mxml中显示的位置????
希望懂的给点意见~谢谢了 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询