📄 colorpickertest.xml
字号:
<Application> <Window caption="Color Picker Test" width="800" height="600" centered="true"/> <Resources> <Script><![CDATA[function ColorPickerTest() { var win = application.getWindow(); var b = new BiButton("Select Color"); var cp = new BiColorPicker; b.setLocation(5, 5); b.addEventListener("action", function (e) { cp.setVisible(true); }); win.add(b); cp.addEventListener("dialogresult", function (e) { if (cp.getDialogResult() != null) { b.setText( cp.getDialogResult() ); win.setBackColor( cp.getDialogResult() ); } }); cp.addEventListener("beforeclose", function (e) { // prevent close... just hide it e.preventDefault(); cp.setVisible(false); }); /* cp.addEventListener("change", function (e) { win.setBackColor( cp.getRgbString() ); }); */}ColorPickerTest.main = function () { new ColorPickerTest(); }; ]]></Script> </Resources></Application>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -