/*
    Profile.VRM
    ===========

    Sample profile macro for VX-REXX version 2.1

    The VX-REXX profile macro is executed when VX-REXX is
    started.  It must be located in the Macros directory under
    the VX-REXX directory.

    The Macros directory contains a number of sample macros and,
    where appropriate, their source.  The macros are briefly
    described below.  To use these macros uncomment the calls
    to VREMacroAdd.

    For more information on writing macros see the Programmer's
    Guide and the file MACROS.TXT in the Macros directory.
*/


/*  The profile is passed a single argument, the internal name (handle) 
    of the primary VX-REXX window.  You should use this as the
    parent of any dialogs you create in the profile.
*/    
    parse arg parent

/*  Property editor
    ---------------
    The property editor allows you to edit the properties of one or
    more objects without using their property notebooks.  This allows you
    to quickly edit one property on a number of objects, or set a property 
    to the same value on a number of objects at once.  It also provides
    the ability to edit longer text items, such as HelpText, in a
    multiple line entry field.

    For example, to edit all of the hints on a window:

    a) Select the objects you wish to edit.
    b) Invoke the "Set properties" macro.
    c) From the Property list select the HintText item.
    d) Type the hint for the current object and press Enter.
    e) Enter the next hint ... and so on.

    Note: The "Set all" push button is only enabled if all selected objects
    are the same type (e.g. all PushButtons).
*/

/*  call VREMacroAdd "Property editor...", "SetProps.VRM" */


/*  Match sizes
    -----------
    The match sizes macro sets the size of all selected objects to the
    size of the object from which the macro was invoked.  A typical
    use is to force a number of push buttons to the same size.
*/

/*  call VREMacroAdd "Match sizes", "Resize.VRM" */


/*  Object list
    -----------
    The object list macro can be used to discover and change
    objects that cannot be directly manipulated (either because they
    are too small or because they are behind another object).  When
    invoked the macro displays a list of all the objects on the window.
    You can then select one or more objects and open the property
    notebook for each.
*/

/*   call VREMacroAdd "Object list...", "ObjList.VRM", "Window" */


/*  Generate code
    -------------
    The following two macros can be used to access the
    automatic code generation dialogs of VX-REXX when using
    an external editor.  (The drag and drop programming feature only
    works with the built-in editor).  The generated code is inserted
    into the OS/2 clipboard, and can be inserted into an external
    editor with its "Paste" command (Shift+Insert).
 
    The first macro invokes the general code insertion dialog (the
    dialog invoked from the "Insert code" menu item in the built-in
    editor).  The second macro invokes the object-specific dialog (the
    dialog invoked when you drag an object onto a built-in editor).

    Note: The "Paste block" menu item in the Enhanced Editor (EPM)
    maintains a uniform indent when pasting several lines of code.
*/

/*  call VREMacroAdd "Generate code...", "GenCodeG.VRM", "Window" */
/*  call VREMacroAdd "Generate object code...", "GenCodeO.VRM" */


