GetPainterMenu()
This code sample describes how to define the menu commands that appear when you right-click the custom display step icon in the Workflow Designer.
Function List GetPainterMenu( Object prgCtx, Boolean viewonly ) List retval //If the menu commands are not set to viewonly, populate the //following Assocs. if ( !viewonly ) Assoca Assocb Assocc Assocd Assoce Assocf //Populate Assoca with the label, font, help, and userdata //values. The label is the name of the menu command, as it //appears in the popup menu that is displayed when you right- //click the step type in the Workflow Designer. The font value //specifies the type of font used to display the menu command. //The help value is the text that is displayed on the Status //Bar when you position your cursor over the Edit command in //the popup menu. The userdata value identifies the request //handler that executes the Edit command. a.label = [WebWork_MenuLabel.Edit] a.font = "bold" a.help = [WebWork_MenuLabel.EditThisStepSAttributes] a.userdata = "rhandler" //Populate Assocb with the label, help, and userdata values. //The label is the name of the menu command, as it appears in //the popup menu that is displayed when you right-click the //step type in the Workflow Designer. The help value is the text //that is displayed on the Status Bar when you position your //cursor over the Duplicate command in the popup menu. The //userdata value identifies the request handler that executes //the Duplicate command. b.label = [WebWork_MenuLabel.Duplicate] b.help = [WebWork_MenuLabel.DuplicateTheCurrentStepSelection] b.userdata = "duplicate" //Set c.separator to TRUE to insert a separator line between //the Duplicate and Choose Performer commands in the popup menu //that appears when you right-click the step type in the //Workflow Designer. c.separator = "true" //Populate Assocd with the label, help, and userdata values. //The label is the name of the menu command, as it appears in //the popup menu that is displayed when you right-click the //step type in the Workflow Designer. The help value is the text //that is displayed on the Status Bar when you position your //cursor over the Choose Performer command in the popup menu. //The userdata value identifies the request handler that //executes the Choose Performer command. d.label = [WebWork_MenuLabel.ChoosePerformer] d.help = [WebWork_MenuLabel.ChooseAUserOrGroupForThisStep] d.userdata = "rhandlerChoose" //Set e.separator to TRUE to insert a separator line between //the Choose Performer and Delete commands in the popup menu //that appears when you right-click the step type in the //Workflow Designer. e.separator = "true" //Populate Assocf with the label, help, and userdata values. //The label is the name of the menu command, as it appears in //the popup menu that is displayed when you right-click the //step type in the Workflow Designer. The help value is the text //that is displayed on the Status Bar when you position your //cursor over the Delete command in the popup menu. The //userdata value identifies the request handler that executes //the Delete command. f.label = [WebWork_MenuLabel.Delete] f.help = [WebWork_MenuLabel.DeleteTheCurrentStepSelection] f.userdata = "delete" //Create a list of the Assocs that hold the values for the menu //commands, and name the list retVal. retval = { a, b, c, d, e, f } //If the menu commands are set to viewonly, populate Assoca with //the label, font, help, and userdata values for the read-only //menu command (view). else Assoca a.label = [WebWork_MenuLabel.View] a.font = "bold" a.help = [WebWork_MenuLabel.ViewThisStep] a.userdata = "rhandlerWorkView" //Store Assoca in a list and name the list retVal. retval = { a } end return retval end