Application Development 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: 

Push Buttons in the custom Container

Former Member
0 Kudos

Hi

I have created one container using cl_gui_custom_container.

Now I have splitted the container into two parts as left and right using cl_gui_splitter_container.

Is there any way to create push buttons in the left container.

Regards

Vijay

5 REPLIES 5

MarcinPciak
Active Contributor
0 Kudos

Pushbutton is an example of classic control while custom container is an example of GUI control . You can't mix controls of first type with the latter meaning you can embed classic control in GUI container. You can have such control only outside any container (on screen canvas). This is very common that you have docking container on the left and classic controls on the right side of the screen (not container)

To be able to have a button inside container, you will have to use cl_gui_toolbar class adding your options there and handling them as normal OO event. This way you only combine GUI controls (toolbar + container). Otherwise it is not possible.

Regards

Marcin

Former Member
0 Kudos

Hi Vijay

if you want do add Buttons similar to those in the SE80 (to select the tool) you may use Button Elements of the Dynamic Documents Control. Refer to example report DD_ADD_FORM_BUTTON.

CL_GUI_TOOLBAR is also an option, but with CL_DD_DOCUMENT (and related classes) you are free with the layout.

Best Regards

Bodo

Former Member
0 Kudos

Vijay,

I would suggest that you create screen with two subscreen areas.

You can add the pushbuttons to the left (and/or right) subscreen(s) as needed then.

0 Kudos

Thanks all for your answers.

I am working on transaction 'ICO/MO_3C' . Here I have added a subscreen by customizing. I can't call a screen from here nor create another sub screen. That is the reason I have splitted the container.

Any more help on this will be appreciated.

0 Kudos

If it is a button on toolbar you can use SET_TOOLBAR_BUTTONS using the grid of left container

if on the Container use another container for no confusion and simple way.

Thanks,

Bhargav