cancel
Showing results for 
Search instead for 
Did you mean: 

Set Image for Button of Popup window

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Due to some problem the posts were repeated....

Edited by: Radhika Vadher on Sep 6, 2009 6:36 PM

Former Member
0 Kudos

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.

" 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( ).
Radhika