‎2006 Nov 23 9:26 AM
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
‎2006 Nov 23 10:14 AM
you canuse SET_ROW_SASH or SET_COLUMN_SASH methods to fix the splitter panes so that user cannot resize them.
‎2006 Nov 23 9:33 AM
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
‎2006 Nov 23 9:39 AM
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.
‎2006 Nov 23 10:14 AM
you canuse SET_ROW_SASH or SET_COLUMN_SASH methods to fix the splitter panes so that user cannot resize them.
‎2006 Nov 23 10:18 AM
You can also use the class CL_GUI_EASY_SPLITTER_CONTAINER and in the constructor set the attribute WITH_BORDER = 0
‎2006 Nov 23 10:29 AM
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
‎2006 Nov 23 10:41 AM
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.