0 Members and 2 Guests are viewing this topic.
ccsb = class()function ccsb:init(x, y, zs) self.x = x self.y = y self.zs = zsendfunction ccsb:paint(gc) local Wself = self local Wgc = gc loadstring(painter)()end---function loadLibs() painter = var.recall("WZEX_lib\\s__paint__")endfunction on.construction() ss = ccsb(1, 1, "This is the main string") loadLibs()endfunction on.paint(gc) ss:paint(gc)endfunction on.charIn(ch) platform.window:invalidate()end
"local WZself = Wselflocal WZgc = WgcWZself.x = WZself.x + 10WZself.y = WZself.y + 10WZgc:drawString(WZself.zs, WZself.x, WZself.y, ""top"")"
--create a window in on.create, which will still be 'visible' to the user window = form(...) --then after on.create we would have the new 'events' window_paint(gc) window_click(x, y)--where x and y is the location of the pixel in the forms body window_etc.....