Advanced Help Menu

version 1 by John W Kennedy

  • Home page
  • Complete text



  • Advanced Help Menu by John W Kennedy begins here.

    "Builds on Emily Short's Basic Help Menu, with hints that are enabled under program control and sample transcriptions"

    Include Basic Help Menu by Emily Short.

    To activate hint (H - table-name):
        if H is a subtable listed in the table of all hints begin;
            choose row with a subtable of H in the Table of all hints;
            let M be the parent subtable entry;
            let T be the title entry;
            blank out the whole row;
            choose a blank row in M;
            change the title entry to T;
            change the subtable entry to H;
            change toggle entry to the hint toggle rule;
        end if.

    To activate hint menu (M - table-name):
        if M is a menu listed in the table of all hint menus begin;
            choose row with a menu of M in the Table of all hint menus;
            let P be the parent subtable entry;
            let T be the title entry;
            blank out the whole row;
            choose a blank row in P;
            change the title entry to T;
            change the subtable entry to M;
        end if.

    This is the sample-transcript rule:
        clear the screen;
        choose row current menu selection in the current menu;
        let the transcription be the subtable entry;
        repeat through the transcription begin;
            say the sample text entry;
            say paragraph break;
        end repeat;
        say "Press SPACE to return to the menu.";
        wait for the SPACE key;
        redraw status line;

    Advanced Help Menu ends here.