‎2011 Apr 04 2:29 PM
I'm using cl_gui_splitter_container to display two ALV grids on one screen. Currently I put the splitter inside a custom container with a fixed size, but what I want to do is use the whole available screen.
When creating a single ALV grid, I can use screen0 as parent to use the full screen:
CREATE OBJECT go_grid EXPORTING i_parent = cl_gui_container=>screen0.
However for a splitter I can't get this to work, not with default_screen instead of screen0 either.
Does anyone have working code where a splitter uses the full screen?
‎2011 Apr 04 2:50 PM
‎2011 Apr 04 2:50 PM
‎2011 Apr 04 4:48 PM
Make the screen as big as you can and place the container on the screen with it`s width and height.
Set the container to auto resize with a minimum of 1.
So the user can use it as fullscreen. The Screen will be compressed until the max. screen size is reached
Regards,
Christian
‎2011 Apr 05 6:38 AM
Hi Filip.,
Create a custom container., and give what ever width and height u want., refer the below snippet.,
DATA: ob_custom TYPE REF TO cl_gui_custom_container,
ob_split1 TYPE REF TO cl_gui_easy_splitter_container,
ob_grid1 TYPE REF TO cl_gui_alv_grid,
ob_grid2 TYPE REF TO cl_gui_alv_grid,
* This will create a container
CREATE OBJECT ob_custom
EXPORTING
container_name = 'CONTAINER'. " this is the custom container name in screen
* This spit the container OB_CUSTOM into two
CREATE OBJECT ob_split1
EXPORTING
parent = ob_custom
orientation = cl_gui_easy_splitter_container=>orientation_horizontal.
*Left side ALV Container
CREATE OBJECT ob_grid1
EXPORTING
i_parent = ob_split1->top_left_container.
*Right Side ALV Container
CREATE OBJECT ob_grid2
EXPORTING
i_parent = ob_split1->bottom_right_container.
then call ob_grid1->set_table_for_first_display and ob_grid2->set_table_for_first_displayhope this will help u.,
revert if u need some more clarifications..
Thanks & Regards
Kiran
‎2011 Apr 05 8:54 AM
Kiran, thanks but that's what I had already; the question was how to make it full screen.
The other two replies got me there; the dock container gave a thick border, the oversize custom container is perfect - thx guys!