Advanced PowerBuilder

HomePrevious Lesson: Resizing User Objects
Next Lesson: Placing Non-Visual User Objects

Time Related Existence

There may be situations where you only need the user object to exist in the window for a certain period of time. You can do this in one of two ways:

You can place the user object in the window and toggle its visible property, so that it gets displayed only when you need it. Here, the memory used is same in both the cases.

You can open the user object dynamically whenever required and close it down when it is no longer needed. The function to open the user object is OpenUserObject(). To send parameters to the user object, you can use OpenUserObjectWithParm(). In both the functions, you can specify the x and y co-ordinates of the user object in the window.
HomePrevious Lesson: Resizing User Objects
Next Lesson: Placing Non-Visual User Objects