CustomWidgets.Examples: Difference between revisions
Jump to navigation
Jump to search
AriosJentu (talk | contribs) (Created page with "This is examples page == Adding Check Box to cell of Table View == thumb|right|Code Example This example creates window with Table View, wh...") |
(No difference)
|
Revision as of 09:21, 6 August 2018
This is examples page
Adding Check Box to cell of Table View
This example creates window with Table View, where you can locate, for example, Custom Check Box:
local Window = CustomWindow.create(50, 50, 250, 220, "Example")
local TabView = CustomTableView.create(5, 25, 240, 190, false, Window)
TabView:addColumn("Column", 80)
local Column = TabView:addColumn("Another Column", 120)
for i = 1, 10 do
if i == 3 then
Line = TabView:addLine(30)
else
TabView:addLine(21)
end
for j = 1, TabView:getColumnsCount() do
TabView:setCellText(i, j, i.." "..j)
end
end
local Cell = TabView:getCell(Line, Column)
Cell:setEnabled(true)
Cell:setText("")
local CheckBox = CustomCheckBox.create(2, 4, 40, 22, "", false, Cell)
