Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

splitter container: fixed size

Former Member
0 Likes
3,770

Hello,

I have a dynpro with a docking container on the top level. Embedded in this are some nested splitter containers (easy splitter containers at the moment). Generally I like the fact that the splitters are resizing automatically when I change the screen size but now I want one of the two containers of a (easy) splitter container to stay fixed in size. Reason is that I embedded a cl_gui_toolbar which is actually fixed in size and looks quite odd when there's a lot of unused space around...

Looking forward to any suggestions !

Best regards,

Patrick Baer

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,952

Have you tried working with the following methods?



   call method:
                splitter->set_row_height
                  exporting id             = 1
                            height         = '14',

                splitter->set_row_sash
                  exporting id             = 1
                            type           = 0
                            value          = 0.


*** or

   call method:
                splitter->set_column_width
                  exporting id             = 1
                            width         = '14',

                splitter->set_column_sash
                  exporting id             = 1
                            type           = 0
                            value          = 0.


Regards,

Rich Heilman

4 REPLIES 4
Read only

Former Member
0 Likes
1,952

Hello Patrick,

I'm not sure I understand you correctly.

-----------------------------------------
|					|	
|       docking container		|
|---------------------------------------|
|		|			|
|  toolbar	|			|
|---------------|			|
|	    ^	|			|  <----- screen	
|	    |	|			|
|           |   |			|
|	    |-->|			|
|	    |	|			|
------------|----------------------------
	    |
        Easy Splitters

If the above is a correct visualization of the situation, then you will not be able to restrict just the TOOLBAR area from resizing. If the rest of the screen resizes and just one area doesn't, it would certainly look bad. Though in your case it may seem desirable.

You should probably think about subscreens and resizing attributes...

Regards,

Anand Mandalika.

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,953

Have you tried working with the following methods?



   call method:
                splitter->set_row_height
                  exporting id             = 1
                            height         = '14',

                splitter->set_row_sash
                  exporting id             = 1
                            type           = 0
                            value          = 0.


*** or

   call method:
                splitter->set_column_width
                  exporting id             = 1
                            width         = '14',

                splitter->set_column_sash
                  exporting id             = 1
                            type           = 0
                            value          = 0.


Regards,

Rich Heilman

Read only

0 Likes
1,952

Anand,

your drawing of my screen was quite good

But it seems you are correct when it comes to the - non existent - solution to my problem.

Rich,

thanks for the code, it did in fact make the sash fixed but only to the user. When the window resizes the sash position will still change.

Nevertheless thanks to both of you.

I will leave the thread unsolved a little longer - maybe someone finds a solution.

Best regards,

Patrick Baer

Read only

0 Likes
1,533

it works