Advanced PowerBuilder

HomePrevious Lesson: Class (Non-Visual User Objects)
Next Lesson: Creating a CommandButton User Object

Creating a Standard User Object

To create a user object, click File > New menu option.

Note that the C++ option will only be available if you have the Enterprise version of PowerBuilder or if the 'Advanced Developer's Kit' is installed.

In this dialog box, you need to specify which type of user object you want to create. Let's see how we created our example from Session 12, which displayed various quotes when different CommandButtons were clicked.

Double click on the 'Standard Visual' icon located under Objects tab page, and select CommandButton from the list of standard visual objects.

A CommandButton should be ready and waiting for you. The user object development environment is similar to that found in the window painter.

If you remember back to our discussion of inheritance, we have just created our own class, crossing the boundary from PowerBuilder to user defined classes. After we add our functionality to this CommandButton, we will be able to create instances of it.
HomePrevious Lesson: Class (Non-Visual User Objects)
Next Lesson: Creating a CommandButton User Object