View Single Post
09-08-11, 07:45 AM   #5
kurapica.igas
A Chromatic Dragonspawn
Join Date: Aug 2011
Posts: 152
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

Click image for larger version

Name:	DataGrid.jpg
Views:	1117
Size:	97.2 KB
ID:	6482

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...

Last edited by kurapica.igas : 09-08-11 at 08:35 AM.
  Reply With Quote