on 09-06-2009 1:04 PM
Hi
How to set the image for button. which is located on popup window.
I am using below button kind
CO_BUTTONS_OKCANCEL - Buttons for 'O.k.', 'Cancel'
I need to set image for OK and Cancel button
Thanks in advance
shravan
Due to some problem the posts were repeated....
Edited by: Radhika Vadher on Sep 6, 2009 6:36 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
When you subscribe to button event you can set the image. As i am not in front of the system i cant give you the exact name, but guess it should be image_source property. Please check subscribe_to_button_event method.
Radhika" subscribe to button event
DATA: l_api TYPE REF TO if_wd_view_controller.
l_api = wd_this->wd_get_api( ).
lo_window->subscribe_to_button_event(
button = if_wd_window=>co_button_ok
button_text = 'Accept' " your button text
image_source = 'Icon' " YOur image
action_name = 'OK'
action_view = l_api
is_default_button = abap_true ).
l_popup->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 |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.