能给个lua在模拟器上面建立文本框的例程
各位大大 我刚接触lua求助啊 本帖最后由 wtof1996 于 2013-4-3 14:51 编辑一个简单的样例:
function on.resize()
local h = platform.window:height();
local w = platform.window:width();
Text1 = D2Editor.newRichText();
Text1:move(20, 20);
Text1:resize(w / 2, h / 2);
Text1:setBorder(1); --此方法仅API2.0 下可用,即3.2默认API级别
Text1:setText("Hello, Nspire!");
end
句末分号是我个人习惯,可以不要 You can find tutorials here : http://www.inspired-lua.org and http://compasstech.com.au/TNS_Authoring/Scripting/
And an API documentation here : http://wiki.inspired-lua.org adriweb 发表于 2013-4-3 19:17 static/image/common/back.gif
You can find tutorials here : http://www.inspired-lua.org and http://compasstech.com.au/TNS_Authorin ...
还是这个论坛啊,果然还是厉害!谢谢各位了,爱死你们了!{:014:}
页:
[1]