home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 January
/
01_03.iso
/
service
/
winamp3
/
files
/
winamp3_0-full.exe
/
Wacs
/
xml
/
config
/
scripts
/
cfgfloat.m
< prev
next >
Wrap
Text File
|
2002-06-25
|
594b
|
30 lines
#include <lib/std.mi>
#include "configinfobox.mi"
Global Text txt;
Global Edit editor;
Global CfgGroup cgroup;
Global Button butt;
System.onScriptLoaded() {
cgroup = getScriptGroup();
txt = cgroup.getObject("cfg.txt");
editor = cgroup.getObject("cfg.edit");
editor.setAutoEnter(true);
butt = cgroup.getObject("cfg.toggle2");
}
editor.onEnter() {
cgroup.cfgSetFloat(stringToFloat(editor.getText()));
}
cgroup.onCfgChanged() {
txt.setText(cfgGetName());
editor.setText(floatToString(cfgGetFloat(),6));
}
butt.onLeftClick() {
ConfigInfoBox();
}