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

Modify width property in CL_GUI_CUSTOM_CONTAINER

Former Member
0 Likes
1,384

Hello,

I have created a HTML custom container (class CL_GUI_CUSTOM_CONTAINER) and then, as a child of this object, a html control (class cl_crm_cic_html_viewer). which calls a URL. I'm trying to modify the size of this container using the SET_WIDTH method, but the size does not change. The code i am using is basically the following:

CREATE OBJECT my_container

EXPORTING

container_name = 'HTML'

EXCEPTIONS

OTHERS = 1.

CALL METHOD my_container->SET_WIDTH

EXPORTING

WIDTH = 500.

CREATE OBJECT html_control

EXPORTING

parent = my_container

SHELLSTYLE = i_style.

CALL METHOD html_control->show_url

EXPORTING

url = doc_url.

Does anybody know how to change the size properties of the gui containers?

Thank you and best regards,

Mario

Hello,

I have created a HTML custom container (class CL_GUI_CUSTOM_CONTAINER) and then, as a child of this object, a html control (class cl_crm_cic_html_viewer). which calls a URL. I'm trying to modify the size of this container using the SET_WIDTH method, but the size does not change. The code i am using is basically the following:

CREATE OBJECT my_container

EXPORTING

container_name = 'HTML'

EXCEPTIONS

OTHERS = 1.

CALL METHOD my_container->SET_WIDTH

EXPORTING

WIDTH = 500.

CREATE OBJECT html_control

EXPORTING

parent = my_container

SHELLSTYLE = i_style.

CALL METHOD html_control->show_url

EXPORTING

url = doc_url.

Does anybody know how to change the size properties of the gui containers?

Thank you and best regards,

Mario

3 REPLIES 3
Read only

Former Member
0 Likes
973

Hm,

I think the size of the custom container is specified by how you draw it in screen painter on the dynpro. I suppose SET_WIDTH is simply inherited from the superclass and does not make any sense for a custom container.

Björn

Read only

0 Likes
973

Hello Björn,

The problem is that i'm not drowing anything with the screren painter. I have a BSP view inside the html_control. The BSP has the 100% of the size, but the html_control only shows a part of it, because the resolution of my screen (1280x1024) is bigger than the standard .

I don't know how to resize the html_control to obtain all the posibilities of this resolution.

Best regards,

Mario

Read only

Former Member
0 Likes
973

Sorry,

then I'm of no help.