tooltiptest3.xml
来自「ajax 框价.是个好工具.javascript 矿家.可以用在任何平台.」· XML 代码 · 共 65 行
XML
65 行
<?xml version="1.0"?><!-- This uses the toolTipText property instead--><Application> <Window caption="Tool Tip Test 3" width="300" height="200"/> <Resources> <Script><![CDATA[function ToolTipTest3() { var win = application.getWindow(); var c = new BiLabel; var cb = new BiCheckBox; var cb2 = new BiLabel; var tt2 = new BiToolTip; var tt3 = new BiToolTip; this._label = c; this._checkBox = cb; c.setText("Both this label and the application window have " + "tool tip texts set"); //c.setTabIndex(1); c.setWrap(true); c.setPadding(2); c.setBackColor("Window"); c.setBorder(new BiBorder(1, "solid", "ThreeDDarkShadow")); c.setLocation(5,5); win.add(c); cb.setText("Checkbox with tool tip"); cb.setLeft(5); win.add(cb); c.setToolTipText("Tool tip for component"); win.setToolTipText("No more rich\ntool tips in this demo"); cb.setToolTipText("Tool tip for checkbox"); win.addEventListener("resize", this.doLayout, this); this.doLayout();}ToolTipTest3.prototype.doLayout = function () { var w = application.getWindow().getClientWidth() - 10; this._label.setWidth(w); this._checkBox.setTop(this._label.getTop() + this._label.getHeight() + 5); this._checkBox.setWidth(w);};ToolTipTest3.main = function () { new ToolTipTest3; }; ]]></Script> </Resources></Application>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?