Skip to Content

Close button not working for CL_GUI_DIALOGBOX_CONTAINER

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 !!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Dec 30, 2014 at 11:53 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • 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 ' Adriano

  • avatar image
    Former Member
    Dec 30, 2014 at 11:05 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 30, 2014 at 11:43 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 30, 2014 at 12:18 PM

    Hi,

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


    Add comment
    10|10000 characters needed characters exceeded