CustomWidgets.Examples
Jump to navigation
Jump to search
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)