Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - menuadditem() adds a menuitem to a menu. internally used. http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 MenuAddItem()          Adds a menuitem to a menu. Internally used.
--------------------------------------------------------------------------------

   Syntax:              MenuAddItem( <cPrompt>, <cMsg>, <lChecked>,
                                     <lActive>, <bAction>, <cBmpFile>,
                                     <cResName>, <oMenu>, <bBlock>, <nVKState>,
                                     <nVirtKey>, <lHelp> ) --> <oMenuItem>

   Parameters:

   <cPrompt>            The caption of the menuitem

   <cMsg>               The messagebar message for that menuitem

   <lChecked>           If it is checked originally the menuitem

   <lActive>            If it is enabled originally the menuitem

   <bAction>            The action to be performed for that menuitem selection

   <cBmpFile>           The name of a BMP file to be used to draw the menuitem

   <cResName>           The name of a BMP resource to be used to draw the
                        menuitem

   <oMenu>              The oMenu container of this menuitem

   <bBlock>             The action to be performed by this menuitem supplied
                        as a codeblock

   <nVKState>           The accelerator info for this menuitem

   <nVirtKey>           Extra accelerator info for this menuitem

   <lHelp>              If it is a right-position typical help menuitem

   Returns:             The menuitem object properly built and initialized

   Observations:        FiveWin manages this function automatically from
                        inside the xBase commands.

   Sample:              SAMPLES\\TestMenu.prg

   Source code:         SOURCE\\CLASSES\\PdMenu.prg

   See also:            Class TMenuItem   Class TMenu



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