‎2016 Jul 19 12:33 PM
Hi,
I have a requirement to create a push button ( bigger push button ) along with Image on it in my custom screen . Can any one help me in this ??
‎2016 Jul 19 1:06 PM
Create an image (CL_GUI_PICTURE) in a customer container,
Regards,
Raymond
‎2016 Jul 20 10:22 AM
Thanks for your reply .
Can you please sample complete code .
‎2016 Jul 20 10:32 AM
‎2016 Jul 19 1:09 PM
Please search the forum for the CL_GUI_HTML_VIEWER control class, and for custom container (element of dynpros) to contain the control. See also the demo programs RSDEMO_HTML_VIEWER and SAPHTML_EVENTS_DEMO.
‎2016 Jul 19 1:40 PM
You can create a custom container of the desired size on your dynpro screen and connect CL_ABAP_BROWSER to this container using parameter CONTAINER of method SHOW_HTML.
To show your "button" html you pass a string containing your picture formatted as a link. The href should be something like
<A href=sapevent:"..."><img ...></A>
You can react on event SAPEVENT of that class then.
The documented CL_ABAP_BROWSER wraps the original GUI Control classes.
For a demo see program DEMO_HTML_BROWSER.
On how to handle pictures (saving them in a transportable way in the MIME repository), see .