SetItem
This command will change an existing button to have different properties. For example, turn the Submit button into an Exit button.
Group: Menu Strip Extensions
Syntax: MenuStrip.SetItem(nIndex, sAction, sDisplay, sImageName)
nIndex (Long) is the index value of the requested button
sAction (String) is the ID of the button and also can execute one of the built-in commands. These are the internal command that can be used:
-
Submit – means to enter the data appearing for the current prompt
-
Refresh – refreshes the display screen
-
Clear – clears the data entered for the current prompt
-
Exit – exits the current process (same as F4 normally does if configured to do so).
-
Search – executes the OnSearch event if one exists for the prompt
sDisplay (String) is the text to be displayed on the button.
sImageName (String) is the Image Resource ID to be displayed on the button.
Example:
MenuStrip.SetItem(4, "Submit", "Submit", "DownArrow")
Supported Versions: RFgen 5.0 and newer.