On the PB Object tab page of the New dialog box, if you select Custom Visual and click OK, the User Object painter for custom visual user objects opens. It looks like the Window painter, but the empty box that displays in the Layout view is the new custom visual user object.
Building a custom visual user object is similar to building a window, described in Chapter 11, “Working with Windows.” The views available in the Window painter and the User Object painter for custom visual user objects are the same.
To build the custom visual user object:
Place the controls you want in the custom visual user object.
Work with the custom visual user object as you would with a window in the Window painter:
Define the properties of the controls
Declare functions, structures, or variables as necessary
Declare any events needed for the user object or its controls
For information about user events, see “Communicating between a window and a user object”.
In the Script view, create and compile the scripts for the user object or its controls
You can write scripts for each control in a custom visual user object.
For more information on events associated with custom visual user objects, see “Events in user objects”.
Save the user object.