Building a custom visual user object – PB Docs 2017

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

  1. Place the controls you want in the custom visual user
    object.

  2. 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
      .

  3. Save the user object.

    See Saving a user
    object
    .


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x