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: 

Trying to display image using function WB_BITMAP_SHOW

wesleynz
Explorer
0 Kudos

I've created a simple program to display an initial image like the one we see in SE80. I also noticed it uses a function called WB_BITMAP_SHOW, so I created a FORM 'z_image' calling the same function. I uploaded an image using SE78 and tried to call the image as follows:

  CALL FUNCTION 'WB_BITMAP_SHOW'
    EXPORTING
      image_name      = 'IMG_PEDIDO'
*     container       = 
*     PARENT          = ''
*      stretch_picture = 'X'.
* IMPORTING
*   IMAGE_CONTROL          =
*   CUSTOM_CONTAINER       = 

The 'custom_control_1' is the area where image is supposed to appear, but nothing appears even trying different ways. What am I doing wrong? Thank you in advance.

1 REPLY 1

raymond_giuseppi
Active Contributor

You have to pass either CONTAINER (name) or PARENT (instance) to the FM so it will be able to use those to create/use container for the picture, or don't use the FM and directly call classes such as CL_GUI_PICTURE and CL_GUI_CUSTOM_CONTAINER which are well documented.)