on 06-26-2008 11:00 PM
Hi,
I'm showing a modal popup.
I want to restrict the resizing of popup.
How can I restrict?
Any ideas.....
Thankx,
Suba
Suba,
check this code
method open_window .
data:
lo_api_component type ref to if_wd_component,
lo_window_manager type ref to if_wd_window_manager,
lo_window type ref to if_wd_window.
lo_node_popup_info type ref to if_wd_context_node.
lo_api_component = wd_this->wd_get_api( ).
call method lo_api_component->get_window_manager
receiving
window_manager = lo_window_manager.
lo_node_popup_info = wd_context->get_child_node( name = if_componentcontroller=>wdctx_popup_info ).
create popup window
call method lo_window_manager->create_window
exporting
MODAL = ABAP_TRUE
window_name = 'ZHRRCF_JOB_POSTING_O'
TITLE =
close_button = abap_true
button_kind = if_wd_window=>co_buttons_close
message_type = if_wd_window=>co_msg_type_information
close_in_any_case = abap_true
MESSAGE_DISPLAY_MODE =
default_button = if_wd_window=>co_button_close
receiving
window = lo_window.
lo_window->set_close_button( abap_true ).
lo_window->set_window_size( width = '550px'
height = '300px' ).
lo_window->open( ).
endmethod.
reward points if helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> Hi,
> I'm showing a modal popup.
> I want to restrict the resizing of popup.
> How can I restrict?
> Any ideas.....
>
> Thankx,
> Suba
Well you have gotten a few answers on how to resize the popup, but from reading your original question I don't believe that was what you were actually asking for. You wanted to know if you could keep people from resizing it on the client after drawing it, right?
I looked at the coding of the dialog and I don't see any hook to disable the user resizing of the dialog window. Although technically possible, that would probably be a violation of our UI usability guidelines within SAP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> Thomas,
> U r right, I should not allow user to resize the popup.
> Is there any way to hide the maximize button?
>
> Thankx,
Ok I am shooting from the hip here as I only did a brief scan of the IF_WD_WINDOW object, but I don't believe that you can hide the maximize button either. I have studied the underlying JavaScript libraries in the past (did a BSP Extension version of them) and I know that the scripting allows for the maximize to be deactivated. This functionality just isn't evidently exposed via the WD interface - again I believe due to UI Governance.
If you don't mind me asking, what is the particular use case for being able to freeze the size of the popup/disable the maximize button? Personally I'm always looking for new feature ideas to pass along to PDef/Development.
Hi,
Use set_window_size method of if_wd_window.
see also example wdr_test_window_suite
component controller method is to_open_api.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.