Building a standard visual user object
On the PB Object tab page of the New dialog box, if you select
Standard Visual and click OK, the Select Standard Visual Type dialog
box displays.
To build a standard visual user object
-
In the Select Standard Visual Type dialog box, select the
PowerBuilder control you want to use to build your standard visual
user object and click OK.The selected control displays in the workspace. Your visual
user object will have the properties and events associated with
the PowerBuilder control you are modifying. -
Work with the control as you do in the Window
painter:-
Review the default properties and make any necessary
changes -
Declare functions, structures, or variables as
necessaryYou can declare these in the Script view.
-
Declare any user events needed for the user
objectFor information about user events, see Communicating between a window and a user
object. -
Create and compile the scripts for the user
objectStandard visual user objects have the same events as the
PowerBuilder control you modified to create the object.
-
-
Save the user object.
See Saving a user
object.