📄 groupboxtest.xml
字号:
<?xml version="1.0"?><!-- Basic test app to show the group box. This should pick up the look and feel from the operative system--><Application> <Window caption="Group Box Test" width="300" height="300"/> <Resources> <Script><![CDATA[function GroupBoxTest() { var win = application.getWindow(); var gb = new BiGroupBox("Hello World"); gb.setLocation(5,5); gb.setRight(5); gb.setBottom(5); win.add(gb); var gbt = gb.getGroupBoxTitle() gbt.setIcon( new BiImage("images/folder.open.16.png") ); gb.setTitlePosition("right"); gbt.setToolTip(new BiToolTip("Click to change the titlePosition")); gbt.setCursor("pointer"); var l = new BiLabel("Label added to the group box") l.setLocation( 0, 0 ); l.setPadding(3); gb.add(l); this._groupBox = gb; gbt.addEventListener("click", function () { var pos; switch ( gbt.getTitlePosition() ) { case "left": pos = "center"; break; case "center": pos = "right"; break; case "right": pos = "left"; break; } gbt.setTitlePosition( pos ); });}GroupBoxTest.main = function () { new GroupBoxTest(); }; ]]></Script> </Resources></Application>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -