Skip to Content
avatar image
Former Member

How to erase a image from the screen dynamically.


I wanted to know how to erase a picture displayed in the screen dynamically.

I am displaying a picture in the screen using container. When I press a button picture will be displayed on that container. But if i press the button for the second time , Pictures displayed will be overlapped , and creates problem while scrolling. One of the image remains fixed , and another moves along with the scrolling bar.

Please help me to solve this problem.

Thank you...

Add comment
10|10000 characters needed characters exceeded

  • Former Member

    class for image : CL_GUI_PICTURE

    container : type ref tocl_gui_custom_container.

    I am trying to display 3 images in a subscreen which has a scroll bar.

  • Please tell us how you display a "picture using container"? Which class for the image? Which type of container?

    Could you please attach a screen capture too, because I don't understand how the scrollbar with one fixed image and one normal image look like?

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 18, 2017 at 05:03 AM

    hi can u follow below steps

    1.when button clicked:

    under button action perform free object of picture and container.

    2. where pbo of screen to display picture.

    create every time objects of container and picture.

    use method of CL_GUI_PICTURE is like below


    then u can get dynamic display of picture

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 18, 2017 at 05:50 AM

    In the PBO, when the picture must be changed or removed you can use the method clear_picture before calling set_display_mode and the required load_picture_from_* method

    Add comment
    10|10000 characters needed characters exceeded