11-15-2007 3:42 PM
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
11-15-2007 3:45 PM
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
11-15-2007 3:45 PM
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
11-15-2007 3:52 PM
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?
11-15-2007 3:46 PM