psCategory - cCJAction
Assigns a category for the action which is used in the menu designer and in the end user configure dialog
Type: Property
Access: Read/Write
Data Type: String
Parameters: None
Syntax
Property String psCategory
| Access Type | Syntax |
|---|---|
| Read Access: | Get psCategory to StringVariable |
| Write Access: | Set psCategory to StringVariable/Value |
Description
psCategory is used to set a category for an item. These categories are used by the Studio's menu designer to group cCJMenuItem sub-classes. The category is also used by the end user menu customization dialog to group items.
Default value is "Other"
Sample
Object oMyMenuItem is cCJMenuItem
Set psCaption to "Select Me"
Set psToolTip to "Select Me in tooltip"
Set psDescription to "Select Me in idle statusbar pane"
Set psImage to "SelectMe.ico"
Set psCategory to "Special"
Procedure OnExecute
Showln "Select Me was selected"
End_Procedure
End_Object
Some of the categories already defined in cCJMeniItem subclasses are "Menus", "Navigate" and "Data Entry".