Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

1. Create one copy of the statsc data structure in your online code. This structure is defined in STATSCNS.H. Here is an example, with the blanks filled in:

Code Block
      struct statsc mygraph={      /* statistic screen interface structure   */
           "Sat activity",         /* name of statistic screen               */
           "DDDSTA1.BIN",          /* filename to get screen from            */
           NULL,                   /* initialize (bring up scn) routine      */
           NULL,                   /* key hit handler routine                */
           NULL,                   /* occasional update (every 60 secs)      */
           NULL,                   /* once-per-cycle routine                 */
           NULL                    /* take down screen routine               */
      };

The name appears in the menu of choices on the Statistics and Graphs screen. The 42 by 17 region of the file is displayed first (as background, or as your finished display) when the Sysop calls up your screen. Note that the statistics screen file has the Developer-ID prefix on it. All the NULLs are the non-implementation of five special purpose routines for your screen.

...

2. Register the statistics screen in your initialization routine.

Code Block
        register_stascn(&mygraph);

This all swings into place when the Sysop switches to the statistics screen (by typing alt+T) and selecting your statistics screen from the list of choices.

...

Applies to: WG3.x

Editor's note: the single audit() call described below remains. Worldgroup 3.12 stores the Audit Trail in a new flat file format (not the Btrieve WGSAUDT2.DAT), with a file API (audf*() functions, HAUDFILE, struct audEntry) documented in chapter 26, and a Year 2000 explanation in chapter 24. Offline utilities obtain the file name from AUDITFILE ("wgsaudit.adt", MAJORBBS.H:430).

...

int blink; 1=give us a blinking attribute

...

Previous: Major BBS v10: 07 Operator Interface  |  Contents  |  Next: Major BBS v10: 09 Databases