on 04-08-2009 12:20 PM
Hi friends,
On button click i want the pop up window to appear as per the required size ,after which i can drag and change accordingly.
This is the code i am using
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 = 'W_POPUP'
close_in_any_case = abap_false
close_button = abap_true
BUTTON_KIND = IF_WD_WINDOW=>CO_BUTTONS_OKcancel
DEFAULT_BUTTON = IF_WD_WINDOW=>CO_BUTTON_OK ).
lo_window->set_window_size( width = '400' height = '200' ).
lo_window->set_remove_on_close( abap_true ).
LO_WINDOW->OPEN( ).
presently for all set_window_size( ) settings, i am getting the same window size in the beginning but draging is working properly.
please give suggestions to generate a popup as per my window_size requirement.
regards,
Radhika
hi ..
I tried all these possibilities as per the above suggestd posts,then also i am getting the same.please suggest some other alternatives too,for eg, any othr methods which will meet my requirement.
thank you.
rgds,
radhika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If your ui size(width & height ) is heigher than window size, you can not see the changes. so please check the UI size(width&height) in RootUITransactionContainer of View.
Best Regards
Ravi Golla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't see set_window_size is working, alternatively you can set the height and width of the ROOTUIELEMENT in the View which is placed in Window.
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.