2、建立flex專案,並新增flexlib.swf到專案中。
3、code:
xmlversion="1.0"
encoding="utf-8"
?>
<
xmlns:fx=""
xmlns:s="library:"
xmlns:flexlib=""
xmlns:mx="library:"
minwidth="955"
minheight="600"
width="100%"
height="100%"
>
<
fx:script
>
import flexlib.mdi.events.mdiwindowevent;
]]>
fx:script
>
<
fx:declarations
>
fx:declarations
>
<
fx:script
>
import mx.core.iuicomponent;
import flash.utils.settimeout;
import mx.events.closeevent;
import mx.controls.alert;
import flexlib.mdi.events.mdimanagerevent;
private var queueevent:mdimanagerevent;
private var menustate:boolean = false;
[bindable]
private var time:string = "";
//初始化
mdicanvas.windowmanager.addeventlistener(mdimanagerevent.window_close, windowclosehandle);
bindtime();
// vgroup.addeventlistener(mouseevent.click, mouseclickhandle);
}//關閉視窗事件處理
private function windowclosehandle(event:event):void
}//關閉視窗提示
private function alerthandle(event:closeevent):void
}//新增視窗
private function addwindowhandle(event:event):void
//獲取當前時間
private function gettime():string
//繫結當前事件到time變數
public function bindtime():void
//根據day獲取星期幾
private function getday(date:number):string
return ret;
}//選單按鈕事件處理
private function menubtnclickhandle(event:event):void
else
}]]>
fx:script
>
<
s:vgroup
id="vgroup"
width="100%"
height="100%"
horizontalalign="center"
>
<
dock="true"
width="100%"
>
<
s:button
id="addwindow"
label="add"
click="addwindowhandle(event);"
/>
>
-->
<
s:group
width="100%"
height="100%"
>
<
s:layout
>
<
s:horizontallayout
verticalalign="middle"
gap="8"
/>
s:layout
>
<
flexlib:mdicanvas
id="mdicanvas"
width="100%"
height="100%"
tilepadding="10"
snapdistance="15"
horizontalscrollpolicy="off"
verticalscrollpolicy="off"
>
<
s:group
width="8%"
height="100%"
fontsize="15"
>
<
s:layout
>
<
s:verticallayout
paddingleft="3"
paddingright="3"
paddingtop="8"
paddingbottom="8"
gap="50"
/>
s:layout
>
<
s:button
label="me"
/>
<
s:button
label="other"
/>
<
s:button
id="addwindow"
label="add"
click="addwindowhandle(event);"
/>
s:group
>
<
flexlib:mdiwindow
resizable="true"
draggable="true"
x="443.95"
y="128.85"
width="532"
height="345"
>
flexlib:mdiwindow
>
<
s:group
id="menupanel"
width="325"
height="490"
x="1.3"
y="443.15"
color="#9f9f82"
visible="false"
>
<
mx:vbox
width="100%"
height="100%"
borderstyle="solid"
x="5"
y="-19"
>
<
mx:box
width="100%"
height="10%"
borderstyle="solid"
>
mx:box
>
<
mx:hbox
width="100%"
height="100%"
borderstyle="solid"
>
<
mx:box
width="60%"
height="100%"
borderstyle="solid"
>
mx:box
>
<
mx:box
width="40%"
height="100%"
borderstyle="solid"
>
mx:box
>
mx:hbox
>
mx:vbox
>
s:group
>
flexlib:mdicanvas
>
s:group
>
<
width="100%"
borderstyle="solid"
cornerradius="8"
>
<
s:button
id="menubtn"
label="menu"
click="menubtnclickhandle(event);"
/>
<
mx:spacer
width="100%"
/>
<
mx:label
text=""
/>
>
s:vgroup
>
>
VC實現XP介面
vc實現xp介面 1 將下列 儲存為 xpstyle.manifest xml version 1.0 encoding utf 8 standalone yes assembly xmlns urn schemas microsoft com asm.v1 manifestversion 1.0 ...
取消XP登入介面
幫小pp弄的!開始以為在控制面板那裡點 使用者賬戶 然後 更改使用者登入或登出方式 提示無法更改 說netware禁用了!於是去解除安裝netware 居然不可以上網了!重啟後可以上網netware還在還是無法更改!於是用下面的方法了 第一種方法 在windows xp中單擊 開始 執行 輸入run...
VC中實現介面XP風格
只需要在stdafx.h裡加入如下語句 if defined m ix86 pragma comment linker,manifestdependency type win32 name microsoft.windows.common controls version 6.0.0.0 proce...