mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 20:18:22 +08:00
25 lines
553 B
Lua
25 lines
553 B
Lua
function on_click(ctx, evt)
|
|
print('on_click');
|
|
end
|
|
|
|
function application_init()
|
|
local win = Window.create(NULL, 0, 0, 0, 0);
|
|
ok = Button.create(win, 10, 5, 80, 30);
|
|
ok:set_text(to_wstr("ok"));
|
|
|
|
print(ok, getmetatable(ok));
|
|
label = Label.create(win, 100, 5, 80, 30);
|
|
label:set_text(to_wstr("text"));
|
|
print(ok, getmetatable(ok));
|
|
print(label, getmetatable(label));
|
|
p = ProgressBar.create(win, 200, 5, 80, 30);
|
|
print(ok, getmetatable(ok));
|
|
print(label, getmetatable(label));
|
|
print(p, getmetatable(p));
|
|
|
|
end
|
|
|
|
application_init()
|
|
|
|
|