📄 globalcursortest.xml
字号:
<?xml version="1.0" encoding="UTF-8"?><!-- Very basic custom dialog. It shows how call backs for dialogs work using event listeners. This tests the dialog result and that dialogs are modal--><Application> <Window caption="Dialog Test" width="500" height="500"/> <Resources> <Script><![CDATA[function GlobalCursorTest() { var win = application.getWindow(); var btn = new BiButton("Set Global Cursor to wait"); btn.setLocation(5, 5); win.add(btn); var btn2 = new BiButton("Hello World"); btn2.setLocation(btn.getLeft() + btn.getWidth() + 5 , 5); win.add(btn2); btn.addEventListener("action", function (e) { win.setGlobalCursor(win.getGlobalCursor() == "wait" ? null : "wait"); }, this); btn2.addEventListener("action", function () { alert("Hello World"); }, this);}GlobalCursorTest.main = function () { new GlobalCursorTest; }; ]]></Script> </Resources></Application>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -