📄 resizetest.xml
字号:
<?xml version="1.0"?><!-- This shows the usage of the BiResizeHandle and BiMoveHandle and how thes can be used to allow the user to move and resize a window/component--><Application> <Window caption="Resize Test" width="600" height="600" centered="true"/> <Resources> <Script><![CDATA[function ResizeTest() { var appWin = application.getWindow(); var win = new BiWindow("Test"); appWin.add(win); var sb = new BiStatusBar; var sbp = new BiStatusBarPanel("Done"); sb.add(sbp); win.getContentPane().add(sb); sb.setHeight(18); sbp.setLeft(0); sbp.setRight(0); var h = new BiResizeHandle(appWin); appWin.add(h); var h2 = new BiResizeHandle(win); h2.setBackColor("ThreeDFace"); var b = new BiBorder; b.setRight(1, "solid", "threedface"); b.setBottom(1, "solid", "threedface"); h2.setBorder(b); h2.setSize(13,13); win.getContentPane().add(h2); var mh = new BiMoveHandle(appWin); mh.setSize(200, 20); mh.setBackColor("red"); appWin.add(mh);}ResizeTest.main = function () { new ResizeTest; }; ]]></Script> </Resources></Application>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -