home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 June / 06_02.iso / bonus / winamp3 / wa3install_beta3.exe / Skins / Default.wal / Scripts / cfgstring.m < prev    next >
Encoding:
Text File  |  2002-02-09  |  425 b   |  22 lines

  1. #include "../../../lib/std.mi"
  2.  
  3. Global Text txt;
  4. Global Edit editor;
  5. Global CfgGroup cgroup;
  6.  
  7. System.onScriptLoaded() {
  8.   cgroup = getScriptGroup();
  9.   txt = cgroup.getObject("cfg.txt");
  10.   editor = cgroup.getObject("cfg.edit");
  11.   editor.setAutoEnter(true);
  12. }
  13.  
  14. editor.onEnter() {
  15.   cgroup.cfgSetString(getText());
  16. }
  17.  
  18. cgroup.onCfgChanged() {
  19.   txt.setText(cfgGetName());
  20.   editor.setText(cfgGetString());
  21. }
  22.