Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dofile (getWorkingFolder() .. "\\scripts\\quik_table_wrapper.lua")
- dofile (getWorkingFolder() .. "\\scripts\\ntime.lua")
- stopped = false
- function format1(data)
- return string.format("0x%08X", data)
- end
- function format2(data)
- return string.format("%06d", data)
- end
- function OnStop(s)
- stopped = true
- end
- function main()
- -- поворачивающиеся «палочки» в заголовке таблицы
- local palochki = {"-","\\", "|", "/"}
- local row
- -- создать экземпляр QTable
- t = QTable.new()
- if not t then
- message("error!", 3)
- return
- else
- message("table with id = " ..t.t_id .. " created", 1)
- end
- t:AddColumn("time", QTABLE_STRING_TYPE, 20)
- --t:AddColumn("time", QTABLE_TIME_TYPE, 20)
- t:AddColumn("ai", QTABLE_STRING_TYPE, 20)
- t:AddColumn("aj", QTABLE_STRING_TYPE, 20)
- t:AddColumn("ak", QTABLE_STRING_TYPE, 20)
- t:AddColumn("al", QTABLE_STRING_TYPE, 20)
- t:SetCaption("mumu")
- t:Show()
- row = t:AddLine()
- row = t:AddLine()
- if SetCell(t.t_id, row, 0, "time") == true then
- message("1")
- else
- message("2")
- end
- if t:SetValue(row,"ai","ai") == true then
- message("3")
- else
- message("4")
- end
- stopped = true
- sleep(100)
- --------------
- message("ed")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement