Created
August 1, 2011 08:55
-
-
Save milligramme/1117822 to your computer and use it in GitHub Desktop.
help tip sample for scriptui
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* scriptui helptip | |
*/ | |
var u; | |
var w = new Window('dialog', "help tips", u); | |
w.orientation = 'column'; | |
// w.margins = 5; | |
w.spacing = 10; | |
w.alignChildren = ['fill', 'fill']; | |
var stt = w.add('statictext', u, "help tips?"); | |
stt.helpTip = "hello static text"; | |
var edt = w.add('edittext', u, "help tips?"); | |
edt.helpTip = "hello edit text"; | |
var ddl = w.add('dropdownlist', u, [1,2,3,4,5,6,7]); | |
ddl.selection = 0; | |
ddl.helpTip = "hello dropdown list"; | |
var rdb_g = w.add('group') | |
var rdb_on = rdb_g.add('radiobutton', u, "ON"); | |
var rdb_off = rdb_g.add('radiobutton', u, "OFF"); | |
rdb_on.value = true; | |
rdb_on.helpTip = "hello radio button ON"; | |
rdb_off.helpTip = "hello radio button OFF"; | |
var sld = w.add('slider', u, 0,0,100); | |
sld.helpTip = sld.value; | |
sld.onChange = function () { | |
sld.helpTip = this.value; | |
stt.text = this.value; | |
} | |
w.show(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment