Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Close button not working for CL_GUI_DIALOGBOX_CONTAINER

former_member223213
Participant
0 Kudos

Dear all,

Using the below classes i am able to display image in dialog box !

CL_GUI_DIALOGBOX_CONTAINER

CL_GUI_PICTURE.


minimize, maximize button working but close button not working ?


Please help me !!

1 ACCEPTED SOLUTION

adrianos_campanhola
Participant
0 Kudos

there's an event in cl_gui_dialogbox_container called 'ON_CLOSE', set a handler for it and when the event is called, just release the objects you need.

6 REPLIES 6

0 Kudos

Hi Raj,

Thanks your response,

i need in abap or ooabap, not in webdynpro abap(FPM) 

Former Member
0 Kudos

Hi Manoj ,

               To activate this 'X' (allow closing the window with ALT+F4) in PBO set status (type dialog box ) and activate CANCEL and CONTINUE buttons. Now when you try closing the window either by CANCEL button or using X, sy-ucomm (ok_code of the screen) will store CANCEL function code.

adrianos_campanhola
Participant
0 Kudos

there's an event in cl_gui_dialogbox_container called 'ON_CLOSE', set a handler for it and when the event is called, just release the objects you need.

0 Kudos

hi adriano,

yes it is working cl_gui_dialogbox_container as event called 'CLOSE'.

when event 'close' is trigger called this below method

CALL METHOD dialogbox->free.


thanks you and Advance Happy new year '

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Pls refer BCALV_GRID_02. It will help you to set and handle the event.