ที่มา: [You must be registered and logged in to see this link.]
ตัวอย่าง : คำสั่งเลื่อนหน้าต่างจากขวาไปซ้าย
ตัวอย่าง : คำสั่งเลื่อนหน้าต่างจากขวาไปซ้าย
- Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("PSsix", 419, 168, 607, 274)
GUISetBkColor(0x000000)
$Button1 = GUICtrlCreateButton("สวัสดีปีใหม่", 56, 32, 299, 89, $WS_GROUP)
GUICtrlSetFont(-1, 24, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, 0x00FF00)
DllCall ( "user32.dll", "int", "AnimateWindow", "hwnd", $Form1, "int", 1000, "long", 0x00040002)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $Form1, "int", 1000, "long", 0x00050010)
Exit
Case $Button1
MsgBox(64,"สวัสดีปีใหม่","ปี "&@YEAR)
EndSwitch
WEnd
แก้ไขล่าสุดโดย POS เมื่อ 15/07/11, 04:38 am, ทั้งหมด 3 ครั้ง