home *** CD-ROM | disk | FTP | other *** search
- /* $VER: TTM-ActiveTTsToTop.rexx 1.0 (7.2.99) by J. Tierney
-
- TTManager Active Tooltypes To Top v1.0
- 2/7/99 J. Tierney
-
- Purpose: Reorders the tooltype list, putting all active tooltypes above the
- inactive ones.
- */
-
- OPTIONS RESULTS
- ADDRESS 'TTMANAGER'
-
- 'GetTooltypeList' ttlist
-
- /* --- Seperate enabled & disabled tooltypes. --- */
- onc = 0
- offc = 0
- DO i = 0 TO ttlist.count - 1
- IF LEFT(ttlist.i, 1) = '(' THEN DO
- offlist.offc = ttlist.i
- offc = offc + 1
- END
- ELSE DO
- onlist.onc = ttlist.i
- onc = onc + 1
- END
- END
-
- IF (onc > 0) & (offc > 0) THEN DO
- /* --- Enabled tooltypes first... --- */
- crnt = 0
- DO i = 0 TO onc - 1
- ttlist.crnt = onlist.i
- crnt = crnt + 1
- END
- /* --- Disabled tooltypes. --- */
- DO i = 0 TO offc - 1
- ttlist.crnt = offlist.i
- crnt = crnt + 1
- END
-
- 'SetTooltypeList' ttlist
- END
-
-