home *** CD-ROM | disk | FTP | other *** search
- !!Script
- // Copyright ⌐ 1999 - Modelworks Software
- // @Created build 290 cm19990427
-
- /**
- @Event: activateHelpIndexes~enable/diable help indexes
- @EndTool:
- @Summary: activateHelpIndexes~enable/diable help indexes
- */
-
- var gOutput = getOutput();
- var gActiveHelpIndexes = getMapFile("ActiveHelpIndexes.map");
-
- function DoCommand()
- {
- var choiceList = newList();
- var checkedList = newList();
-
- var position = gActiveHelpIndexes.getHeadPosition();
- while (position && position.valid)
- {
- var association = gActiveHelpIndexes.getNext(position);
- if (association)
- {
- choiceList.addTail(association.key);
- checkedList.addTail(association.value);
- }
- }
-
- var resultList = chooseOptions("Active Help Indexes",
- "Check the help indexes that will be loaded during startup", choiceList, checkedList);
-
- // result is a list of booleans
- if (resultList)
- {
- var listPosition = choiceList.getHeadPosition();
- var resultPosition = resultList.getHeadPosition();
- var checkedPosition = checkedList.getHeadPosition();
- while (resultPosition.valid && listPosition.valid)
- {
- var selected = resultList.getNext(resultPosition);
- var item = choiceList.getNext(listPosition);
- var checked = checkedList.getNext(checkedPosition);
-
- if (selected != checked)
- {
- gActiveHelpIndexes.setValue(item, selected);
- }
- }
- }
- }
-
- !!/Script
-
-