|
A docking container can attach one or more areas to a screen. You can attach an area to one or more edges of the screen. The original screen is made smaller to attach this docking container. You can re-size the docking container. Tip: The containers are attached from inside out. This means that when you attach another container, it is attached to the edge of the screen. The 1st container is pushed outwards. You can attach as many containers as you want. However, it is not recommended to attach too many containers in one screen. Generally a docking container is attached to the left of the screen.
Creating an instance: The class for docking container CL_GUI_DOCKING_CONTAINER is inherited from CL_GUI_CONTAINER. DATA : lref_docking_container TYPE REF TO cl_gui_docking_container. Create the object using the CREATE OBJECT statement. In this case you need not define a control area on the screen to place this docking container. You can only enter the Program name and the screen number. Or you can also give the control area name. Specify the side of the screen where you want to attach the control. By default it is attached to the left. Give the ratio in which the screen should be split. This container can then be used as a parent container, to which you can attach any control like a picture control or a HTML control or any other control. Check out our example program.
|