Sáng kiến kinh nghiệm - Kinh nghiệm sưu tầm, tuyển chọn các bài đồng dao cho trẻ mầm non theo chủ điểm - Pdf 16

GUICtrlSetGraphic(-1, $GUI_GR_COLOR, 0xff0000)
GUICtrlSetGraphic(-1, $GUI_GR_LINE, 10, 50)
GUICtrlSetGraphic(-1, $GUI_GR_COLOR, 0xffff00)
GUICtrlSetGraphic(-1, $GUI_GR_LINE, 10, 10)

$a[5] = GUICtrlCreateGraphic(150, 10, 50, 50, 0)
GUICtrlSetBkColor(-1, 0xa0ffa0)
GUICtrlSetGraphic(-1, $GUI_GR_MOVE, 20, 20) ; start point
; it is better to draw line and after point
; to avoid to switch color at each drawing
GUICtrlSetGraphic(-1, $GUI_GR_COLOR, 0x0000ff)
GUICtrlSetGraphic(-1, $GUI_GR_DOT, 30, 30)
GUICtrlSetGraphic(-1, $GUI_GR_COLOR, 0)
GUICtrlSetGraphic(-1, $GUI_GR_LINE, 20, 40)
GUICtrlSetGraphic(-1, $GUI_GR_COLOR, 0xff0000)
GUICtrlSetGraphic(-1, $GUI_GR_DOT, 25, 25)
GUICtrlSetGraphic(-1, $GUI_GR_COLOR, 0)
GUICtrlSetGraphic(-1, $GUI_GR_LINE, 40, 40)
GUICtrlSetGraphic(-1, $GUI_GR_DOT, 40, 40)

GUISetState()
EndFunc ;==>CreateChild
Function Reference
GUICtrlCreateGroup
tạo một Group control cho GUI để nhóm các control lại.
GUICtrlCreateGroup ( "text", left, top [, width [, height [, style [, exStyle]]]] )
Parameters
text text hiện trị sẵn trên control

#include <GUIConstantsEx.au3>

Opt('MustDeclareVars', 1)

Example()

Func Example()
Local $radio_1, $radio_2, $msg

GUICreate("My GUI group") ; will create a dialog box that when displayed is
centered

GUICtrlCreateGroup("Group 1", 190, 60, 90, 140)
$radio_1 = GUICtrlCreateRadio("Radio 1", 210, 90, 50, 20)
$radio_2 = GUICtrlCreateRadio("Radio 2", 210, 110, 60, 50)
GUICtrlCreateGroup("", -99, -99, 1, 1) ;close group

GUISetState() ; will display an empty dialog box

; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
EndFunc ;==>Example
Function Reference

để đặt các thuộc tính cho control ta dùng GUICtrlSet

để sử dụng nhiều kiểu trong style ta dùng BitOr($GUI_SS_DEFAULT_ICON,
newstyle, ).

để có thể dùng đc các biến trên ta cần phải khai báo thư viện #include
<StaticConstants.au3> in your script.

Default resizing is $GUI_DOCKSIZE.
Related
GUICoordMode (Option), GUICtrlSetImage, GUICtrlSet , GUIGetMsg
Example

#include <GUIConstantsEx.au3>

Opt('MustDeclareVars', 1)

Example1()
Example2() ;example1
Func Example1()
Local $icon, $n1, $n2, $msg

GUICreate(" My GUI Icons", 250, 250)

$icon = GUICtrlCreateIcon("shell32.dll", 10, 20, 20)
$n1 = GUICtrlCreateIcon(@WindowsDir & "\cursors\horse.ani", -1, 20, 40, 32,
32)


Nhờ tải bản gốc

Tài liệu, ebook tham khảo khác

Music ♫

Copyright: Tài liệu đại học © DMCA.com Protection Status