Что нового

[Элементы GUI] Создание GUICtrlCreateListView с элементом GUICtrlCreateDate

XpycT

Скриптер
Сообщения
380
Репутация
133
Версия AutoIt: 3.3.6.0

Есть скрипт создающиц GUI и элемент ListView
Код:
#Region Includes
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListView.au3>
#include <ListViewConstants.au3>
#EndRegion Includes
#NoTrayIcon
Opt("GUIOnEventMode", 1)

$hForm = GUICreate("Form", 620, 450, -1, -1, BitOR($GUI_SS_DEFAULT_GUI, $WS_MINIMIZEBOX, $WS_SYSMENU))
GUISetOnEvent($GUI_EVENT_CLOSE, "_Close")

$ListView = GUICtrlCreateListView("", 5, 5, 610, 440)
$hListView = GUICtrlGetHandle($ListView)
_GUICtrlListView_AddColumn($hListView, "#", 30, 2)
_GUICtrlListView_AddColumn($hListView, "Name", 400, 0)
_GUICtrlListView_AddColumn($hListView, "Date", 150, 2)

For $c = 1 To 30
	 GUICtrlCreateListViewItem($c & "|Employee " & $c & "|" & StringFormat("%02d.%02d.%04d", Random(1, 28, 1), Random(1, 12, 1), Random(2008, 2009, 1)), $ListView)
Next

GUISetState(@SW_SHOW)

While 1
	Sleep(100)
WEnd

Func _Close()
	Exit
EndFunc


Подскажите плиз как в колонке Date создать элемент GUICtrlCreateDate
 

CreatoR

Must AutoIt!
Команда форума
Администратор
Сообщения
8,671
Репутация
2,481
Вот тут (папка «Edit In Place Demo») есть пример как это можно сделать.
 
Верх