窗口变化(已解决)
本帖最后由 lin0308 于 2010-8-13 19:50 编辑如上图,当点击高级选项时变成下图
如何做到这种效果, 本帖最后由 afan 于 2010-8-13 18:15 编辑
http://www.autoitx.com/forum.php?mod=viewthread&tid=16802 新手还是应该多搜搜。 #include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("测试", 633, 454, 192, 114)
$Group1 = GUICtrlCreateGroup("我靠", 24, 8, 305, 297)
$Button1 = GUICtrlCreateButton("就爱点你", 160, 208, 89, 25, $WS_GROUP)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
yk()
EndSwitch
WEnd
Func yk()
GUISetState(@SW_HIDE,$Form1 )
$Form1_1 = GUICreate("测试", 634, 455, 192, 114)
$Group1 = GUICtrlCreateGroup("我靠", 24, 8, 577, 417)
$Button2 = GUICtrlCreateButton("应用", 496, 392, 89, 25, $WS_GROUP)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
GUISetState(@SW_SHOW,$Form1 )
Case $Button2
GUISetState(@SW_SHOW,$Form1 )
GUISetState(@SW_HIDE,$Form1_1)
EndSwitch
WEnd
EndFunc ;==>cka
自己编的,你参孝一下。
页:
[1]