?? argumenttest.xml
字號:
<?xml version="1.0"?><!-- This tests the argument support for the application--><application> <window caption="Argument Test" width="50%" height="50%" centered="true" resizable="true" fullScreen="false"/> <resources> <script><![CDATA[function ArgumentTest(argc, argv) { var win = application.getWindow(); var countLabel = new BiLabel( argc + " argument" + (argc != 1 ? "s" : "") ); countLabel.setLocation(5, 5); win.add(countLabel); var y = countLabel.getHeight() + 10; var l; for (var i = 0; i < argc; i++) { l = new BiLabel(argv[i]); l.setLocation(5, y) win.add(l); y += l.getHeight() + 5; }}ArgumentTest.main = function () { new ArgumentTest(arguments.length, arguments)}; ]]></script> </resources></application>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -