home *** CD-ROM | disk | FTP | other *** search
- #include "../../../lib/std.mi"
-
- Global Text txt;
- Global Edit editor;
- Global CfgGroup cgroup;
-
- System.onScriptLoaded() {
- cgroup = getScriptGroup();
- txt = cgroup.getObject("cfg.txt");
- editor = cgroup.getObject("cfg.edit");
- editor.setAutoEnter(true);
- }
-
- editor.onEnter() {
- cgroup.cfgSetString(getText());
- }
-
- cgroup.onCfgChanged() {
- txt.setText(cfgGetName());
- editor.setText(cfgGetString());
- }
-