Introduction
Use
Explanation
You must assign each control that you want to display on a screen to a Container Control. The graphic above shows how a textedit control is integrated into a screen by means of a Custom Container Control. Using a container created in the Screen Painter, you must determine an area that the custom container control is to fill.
A container control organizes the representation of one or more controls. Depending on the type of container control, you can:
-
Place a control on the screen at a fixed position, for example, on a subscreen (Custom Container Control)
-
Embed several controls into a container control that is divided into areas (Splitter Container Control and Easy Splitter Container Control)
-
Represent a control in a modeless dialog box that can be moved freely (Dialog Box Container Control)
-
Dock a control with a selected screen margin (Docking Container Control).
It is also possible to nest container controls. For example, you can specify a container control for the parent parameter of a container control. This way, you can arrange controls on the screen in many different ways.
Once you have created a container control, you can also display it on another screen. To do this, you must reassign the control, in other words, link it to another screen. All controls that have specified this container control as their parent, are also reassigned. If you have a nested container control, you can only reassign that control which contains all other controls.
Conclusion
Based on the architecture, we can derive the following steps for creating a control:
-
To display a control in a specific screen area, you create a container in the Screen Painter.
-
Using the CREATE OBJECT statement, you create a container control at PBO time that you assign to the screen.
-
Using the CREATE OBJECT statement, you create a control instance at PBO time that you assign to the container control.