home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 67 / IOPROG_67A.ISO / soft / Tools / mwsppv4.exe / TOGGLESHOWLINENUMBERS.SCRIPT < prev    next >
Encoding:
Text File  |  1998-12-07  |  593 b   |  25 lines

  1. !!Script
  2. //Copyright ⌐ 1997-1998 - Modelworks Software
  3.  
  4. /**
  5. @Tool: toggleShowLineNumbers~assign a hot key to this script to turn line numbers
  6. on and off. 
  7. @EndTool:
  8. @Summary: toggleShowLineNumbers~turn line numbers on and off
  9. */
  10.  
  11. function DoCommand()
  12. {
  13.     var preferencesMapFile = getMapFile("Preferences");
  14.     if (preferencesMapFile)
  15.     {
  16.         var lineNumberState = preferencesMapFile.lookup("Show Line Numbers");
  17.         preferencesMapFile.setValue("Show Line Numbers", !lineNumberState);
  18.         
  19.         updatePreferences(); // Tell the IDE to update the runtime preferences
  20.     }
  21. }
  22.  
  23. !!/Script
  24.  
  25.