cancel
Showing results for 
Search instead for 
Did you mean: 

How to make popup window resizable

uta_bchner
Explorer
0 Kudos

Hello everybody,

I'm struggling with a little problem - in my application I open a new view in a popup window using method if_wd_window_manager->create_window. Works fine so far except for the fact that the popup window is not resizable, means you cannot change the window size by dragging the window edges per mouse.

Is there any way to change this? I understand that there is a "resizable"-attribute for external windows, but seemingly not for internal ones??

Accepted Solutions (1)

Accepted Solutions (1)

former_member199125
Active Contributor
0 Kudos

Hi

Re sizing  will work only in new versions, What version you are using.

I am not sure it will effect from EHP 4 or 5.

Regards

Srinivas    

uta_bchner
Explorer
0 Kudos

Hello Srinivas,

thank you for the information. I think that will be the problem.

Uta

Answers (2)

Answers (2)

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

The resizing option should come by default.Just check whether you have changed any setting.

DATA lo_window_manager TYPE REF TO if_wd_window_manager.

DATA lo_api_component TYPE REF TO if_wd_component.

DATA lo_window TYPE REF TO if_wd_window.

lo_api_component = wd_comp_controller->wd_get_api( ).

lo_window_manager = lo_api_component->get_window_manager( ).

lo_window = lo_window_manager->create_window(

window_name = 'POP_UP'

title = 'POPUP'

message_display_mode = if_wd_window=>co_msg_display_mode_selected

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->open( ).

Former Member
0 Kudos

Hi Uta,

    You can use the method SET_WINDOW_SIZE and SET_WINDOW_POSITION to control the window size. This method is available in the interface IF_WD_WINDOW.

Thanks & Regards,

Arun.

uta_bchner
Explorer
0 Kudos

Hello Arun,

thank you, yes, I know these methods for fixing the window size. I would just have liked to let the user resize the window by himself, per mouse. Is there any way to do this?