本帖最后由 ma395311229 于 2016-2-29 14:34 编辑
如何建立表格样式的lable?如下图
目前我只想到了覆盖的方式,就是后面的选框盖住前面的#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <StaticConstants.au3>
Example()
Func Example()
Local $hGUI = GUICreate("Test", 500, 100)
Local $Year = GUICtrlCreateLabel("Year", 100, 40, 65, 20, BitOR($WS_BORDER, $SS_CENTER, $SS_CENTERIMAGE)) ;-->Create Year Label
Local $Month = GUICtrlCreateLabel("Month", 164, 40, 60, 20, BitOR($WS_BORDER, $SS_CENTER, $SS_CENTERIMAGE)) ;-->Create Month Label
Local $Day = GUICtrlCreateLabel("Day", 223, 40, 60, 20, BitOR($WS_BORDER, $SS_CENTER, $SS_CENTERIMAGE)) ;-->Create Day Label
Local $Hour = GUICtrlCreateLabel("Hour", 282, 40, 60, 20, BitOR($WS_BORDER, $SS_CENTER, $SS_CENTERIMAGE)) ;-->Create Hour Label
Local $Minute = GUICtrlCreateLabel("Minute", 341, 40, 59, 20, BitOR($WS_BORDER, $SS_CENTER, $SS_CENTERIMAGE)) ;-->Create Minute Label
GUISetState(@SW_SHOW, $hGUI)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
EndSwitch
WEnd
GUIDelete($hGUI)
EndFunc ;==>Example
|