That's a sample code to show thread system, not event system, I know what I'm doing, the final goal is to make UI simple, just like this
DataGrid.jpg
the class system's inherit make creating widgets in an easy way.
Code:
IGAS:NewAddon("TestA")
import "System.Widget"
f = Form("TestF")
f.Caption = "Test"
dg = DataGrid("Dg", f)
dg:SetPoint("TOPLEFT", f, "TOPLEFT", 8, -30)
dg:SetPoint("BOTTOMRIGHT", f, "BOTTOMRIGHT", -8, 26)
dg.ColumnCount = 3
dg:SetColumnLabel(1, "Name")
dg:SetColumnLabel(2, "Score")
dg:SetColumnLabel(3, "Passed")
dg:SetColumnCellType(1, "Label")
dg:SetColumnCellType(2, "Number")
dg:SetColumnCellType(3, "Boolean")
dg.RowCount = 5
dg.Cells(1, 1).Text = "Kurapica"
dg.Cells(1, 2).Value = 30
dg.Cells(1, 3).Value = true
Well, you may find some information in my old addon(need update)
http://wow.curseforge.com/addons/igas_studio/
The lib has too many things to explain, but I thought the base class system is the most important to start.I only have three more widgets to do now, after that, I just want see if any person want to join...