Building a custom visual user object
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 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
controlsFor 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 controlsYou 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.
See Saving a user
object.