About the User Object painter

The User Object painter has different implementations, depending on the type of user object you are working with. It has several views where you specify how the user object behaves and, for custom visual and standard visual user objects, how it looks. For details about the views, how you use them, and how they are related, see “Views in painters that edit objects”.

Views for visual user objects

In this User Object painter for a custom visual user object, the Layout view and Script view have been arranged to display at the same time.

Figure 14-1: Custom visual object in the User Object painter

Shown is the User Object painter for the custom visual user object named v u o underscore buttons. At top left is the Layout view, which shows three buttons labeled, from left to right, OK, Cancel, and Help. Below this is the Script area. At its top are two drop down lists that display the control name and the drag drop event. At bottom is a blank display area for script. The General tab of the Properties view displays at the top right of the painter and the Control list displays at the bottom right.

Most of your work in the User Object painter for visual objects is done in three views:

In the Layout view, you add controls to a visual user object in the same way you add controls to a window.

For information about specifying user object properties, see “Building a new user object”. For information about using the Script view, see Chapter 6, “Writing Scripts.”

Views for nonvisual user objects

The Layout and Control List view are not needed for nonvisual user objects, but you use all the other views that you use for visual objects.

For nonvisual user objects, there is no layout design work to do, but otherwise, working in the User Object painter on the behavior of a nonvisual object is similar to working on the behavior of a visual user object.