?? statusbartest.xml
字號:
<?xml version="1.0"?><!-- Test case for the status bar--><application> <window caption="Status Bar Test" width="500" height="400" centered="true"/> <resources> <script><![CDATA[function StatusBarTest() { var win = application.getWindow(); var sb = new BiStatusBar; var panel1 = new BiStatusBarPanel("Dimensions: 16x16 Type: PNG Image Size: 454 bytes"); panel1.setLeft(0); panel1.setRight(224); var panel2 = new BiStatusBarPanel("454 bytes"); panel2.setWidth(65); panel2.setRight(157); var panel3 = new BiStatusBarPanel("Local Intranet"); panel3.setWidth(155); panel3.setRight(0); panel3.setIcon( new BiImage(application.getAdfPath() + "images/folder.open.16.png", 16, 16) ); sb.add(panel1); sb.add(panel2); sb.add(panel3); win.add(sb); var dummyTop = new BiComponent; dummyTop.setBackColor("ThreeDFace"); dummyTop.setBorder( BiBorder.GROOVE_BORDER ); dummyTop.setLocation(0, 0); dummyTop.setHeight(30); dummyTop.setRight(0); win.add(dummyTop); var dummyLeft = new BiComponent; dummyLeft.setBackColor("Window"); dummyLeft.setBorder( BiBorder.INSET_BORDER ); dummyLeft.setLocation(0, dummyTop.getHeight() + 2); dummyLeft.setWidth(150); dummyLeft.setBottom(sb.getHeight()); win.add(dummyLeft); var dummyRight = new BiComponent; dummyRight.setBackColor("Window"); dummyRight.setBorder( BiBorder.INSET_BORDER ); dummyRight.setLocation(dummyLeft.getWidth() + 2, dummyTop.getHeight() + 2); dummyRight.setBottom(sb.getHeight()); dummyRight.setRight(0); win.add(dummyRight);}StatusBarTest.main = function () { new StatusBarTest(); }; ]]></script> </resources></application>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -