⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tooltiptest2.xml

📁 ajax 框价.是个好工具.javascript 矿家.可以用在任何平台.
💻 XML
字号:
<?xml version="1.0"?><!--	This tests changing the tooltip text while the tooltip is shown--><Application>	<Window caption="Tool Tip Test" width="300" height="200"/>	<Resources>		<Script><![CDATA[function ToolTipTest2() {	var win = application.getWindow();	var tt = new BiToolTip("Tool Tip");	tt.setHideInterval(10000);	this._toolTip = tt;	this.makeLabels(["Label 1", "Label Two", "Another Label", "Label 4"]);	tt.addEventListener("beforeshow", function (e) {		tt.setText(tt.getComponent().getText());	});	win.addEventListener("mousemove", function (e) {		if (tt.getIsVisible()) {			tt.setText(tt.getComponent().getText() +				"\n(" + e.getClientX() + ", " +				e.getClientY() + ")" );			tt.pack();			tt.layoutComponent();		}	});}ToolTipTest2.prototype.makeLabels = function (aTexts) {	var l = aTexts.length	this._labels = new Array(l);	var tmp;	var top = 5;	var b = new BiBorder(1, "solid", "ThreeDDarkShadow");	var win = application.getWindow();	for (var i = 0; i < l; i++ ) {		tmp = new BiLabel(aTexts[i]);		tmp.setBorder(b);		tmp.setBackColor("Window");		tmp.setPadding(2);		tmp.setLocation(5, top);		tmp.setRight(5);		tmp.setToolTip(this._toolTip);		win.add(tmp);		top += tmp.getHeight() + 5;	}}ToolTipTest2.main = function () { new ToolTipTest2(); };		]]></Script>	</Resources></Application>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -