on 07-09-2008 10:52 AM
Hi All,
I want to increase the size of popup window, after create window, i am calling method SET_WINDOW_SIZE I tried with all posible values like 100%, 250px, 1000 but there is no effect on the size of the popup in the output.
Please refer my code below and help me out in this
Thanks in advance......
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_window(
window_name = 'ZTEST_POPUP'
title = 'Test Popup'
close_in_any_case = abap_true
message_display_mode = if_wd_window=>co_msg_display_mode_selected
close_button = abap_true
button_kind = if_wd_window=>co_buttons_ok
message_type = if_wd_window=>co_msg_type_none
default_button = if_wd_window=>co_button_ok
).
lo_window->set_close_button( abap_true ).
lo_window->set_window_position(
position = if_wd_window=>co_left ).
lo_window->set_window_size( width = '500px'
height = '500px' ).
lo_window->open( ).
Regards,
Venkat.
Hi Venkat,
Jus set the size (height and width ) in ROOTUIELEMENT of the popup view. This will resolve ur issue.
Regards
Sathish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
...just for future reference: It seems to work only if set_window_size is called after open( ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.