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 without any border

Former Member
0 Likes
1,191

Hi,

is that possible to create a splitter but with no border at all? I'm setting a border to false, but this is still not enough. Can someone tell me if that is possible?

Big thanks,

Marcin

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
905

you canuse SET_ROW_SASH or SET_COLUMN_SASH methods to fix the splitter panes so that user cannot resize them.

6 REPLIES 6
Read only

Former Member
0 Likes
905

If there is no border how will the user identify how to resize the two controls you are showing, isn't that flexibility left to the user ?

Regards,

Ravi

Read only

0 Likes
905

Well, but in this situation I want to use splitter as a container, just to put e.g. a toolbar at the top and a tree at the bottom. And I want to create that dynamically. So I don't need resizing in this situation, only container which gives me possibility to place few elements inside one parrent container. And it would look nicer if this gray border wouldn't be visible at all.

Read only

Former Member
0 Likes
906

you canuse SET_ROW_SASH or SET_COLUMN_SASH methods to fix the splitter panes so that user cannot resize them.

Read only

Former Member
0 Likes
905

You can also use the class CL_GUI_EASY_SPLITTER_CONTAINER and in the constructor set the attribute WITH_BORDER = 0

Read only

0 Likes
905

Did you check that? Is that working? Because I entered into CONSTRUCTOR code of CL_GUI_EASY_SPLITTER_CONTAINER and it looks like WITH_BORDER parameter isn't used anywhere, looks like it is dummy parameter which doesn't change anything. I will write some test program, because I don't believe that

Read only

0 Likes
905

Just like I thought, it doesn't change anything. But finally I found the solution I was looking for.

mr_splitter->set_row_sash( id = 1

type = cl_gui_splitter_container=>type_sashvisible

value = cl_gui_splitter_container=>false ).

I found that there is another switch for sash which can be turn on/off and this is exactly I was looking for. Now the sash is hidden and looks just like I wanted.