rc.hlp (Table of Contents; Topic list)
PRESPARAMS (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
 
                 The Resource Compiler PRESPARAMS Statement
 
PRESPARAMS (presparam, value[, presparam, value][, ...]) 
 
The PRESPARAMS statement defines presentation fields that customize a dialog
box, menu, window, or control. PRESPARAMS data is a series of types and
values. The window procedure of the dialog box, menu, window, or control
receives and processes this data when the item is created. The data for
custom controls can be in any format.
 
Field      Description
────────────────────────────────────────────────────────────────────────────
 
presparam  Specifies a presentation-field type. For a list of presentation
           paramaeters, see the Presentation parameters topic.
 
value      Specifies the presentation-field value.
 
Comments
 
PRESPARAMS is often used to supply data to control the appearance of the
customized window when it is first created. For example, the PRESPARAMS
statement may specify the colors to be used in the window.
 
In order to use the PP_ constants for the presparam parameter, you must
define the INCL_WINSYS include constant before specifying the os2.h header
file.
 
Example
 
This example creates a menu resource with a menu identifier of 1. The
PRESPARAMS statement specifies that the following three menu items be
displayed in the 12-point Helvetica font.
 
MENU 1
BEGIN
    PRESPARAMS PP_FONTNAMESIZE, "12.Helv"
    MENUITEM "New", 100
    MENUITEM "Open", 101
    MENUITEM "Save", 102
END
 
See Also
 
CONTROL, CTLDATA, DIALOG, FRAME, MENU, MENUITEM, SUBMENU, WINDOW