Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Grumpfish Library 3.2 - <b>helpdevset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
HELPDEVSET()

    HELPDEVSET() allows you to easily alter any of the default help
    window attributes, including the coordinates and colors.  You can
    also change the name of the help screen file that HELPDEV() looks
    for.

    Syntax

    HELPDEVSET(<nSetting>, <newvalue>)

    Required Parameters

    <nSetting> is a numeric representing the array element to be
    changed.  The static array of defaults contains the following
    information:

    Manifest Constant        Array
     (in GRUMPH.CH)         Element        Default Value
     _HELP_TOP                 1               0
     _HELP_LEFT                2               0
     _HELP_BOTTOM              3              20
     _HELP_RIGHT               4              79
     _HELP_OUTLINE             5               2
     _HELP_BOXCOLOR            6               7 (W/N)
     _HELP_TITLECOLOR          7             112 (N/W)
     _HELP_FOOTERCOLOR         8             112 (N/W)
     _HELP_TEXTCOLOR           9              15 (+W/N)
     _HELP_TITLE              10           "Help Screen"
     _HELP_FOOTER             11           "..  Alt-P print  Esc exit"
     _HELP_FILENAME           12           "help" (HELP.DBF)

    All of these, with the exception of _HELP_FILENAME, determine
    the attributes for new help screens.  _HELP_FILENAME controls
    the name of the file where these help screens will be saved.

    <newvalue> is the value to change that particular setting to.

    Notes

    Manifest Constants: When you call this function, be sure to use the
    manifest constants rather than the numeric values.  See below for an
    example.  NOTE: although these manifest constants are stored in the
    GRUMPH.CH header file, you do not need to #include that file.
    Instead, just be sure to #include GRUMP.CH, which in turn will
    automatically pull in the contents of GRUMPH.CH.

    Return Value

    HELPDEVSET() returns the prior value for the setting that you
    are changing.

    Sample Usage

    #include "grump.ch"

    function main                                                            
    helpdevset(_HELP_FILENAME, "custhelp")  // use CUSTHELP.DBF, not HELP.DBF
    helpdevset(_HELP_TOP, 10)               // use 10 as default top row     
    helpdevset(_HELP_BOTTOM, 18)            // use 18 as default bottom row  

See Also: HELP/HELPDEV HELPSET()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson