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: 

class CL_GUI_CUSTOM_CONTAINER->set_height

Former Member
0 Kudos

Hello Friends,

I have created a container from the class CL_GUI_CUSTOM_CONTAINER,

And I want to set the height of this container at runtime.

My code looks like this:

Data: textedit_custom_container type ref to cl_gui_custom_container,

create object textedit_custom_container

exporting container_name = 'NOTE_EDITOR'

exceptions cntl_error = 1

cntl_system_error = 2

create_error = 3

lifetime_error = 4

lifetime_dynpro_dynpro_link = 5.

I want to call the method set_height, but I am not sure how to do this,

Could anyone provide an example? it would be much appreciated...

Best regards to you all..

Ballo

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos

You can do it like this:


data: i_height type i.

call method textedit_custom_container->set height 
exporting height = i_height.  " << i_height is your height say 20

Regards,

Naimesh Patel

3 REPLIES 3

naimesh_patel
Active Contributor
0 Kudos

You can do it like this:


data: i_height type i.

call method textedit_custom_container->set height 
exporting height = i_height.  " << i_height is your height say 20

Regards,

Naimesh Patel

0 Kudos

Hello again:)

Thanx for the quick reply, this function returned no error, but it had no effect either, the container is still the same size as defined in the layout... any idea how to change this at runtime?

Former Member
0 Kudos

Hi,

Use SET_HEIGHT Method.

Reward points if it helps,

Satish