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: 

Custom graphics programming on dilaog screens

Former Member
0 Kudos

Hi,

I want to display a custom graph on a dialog screen (e.g. a country map), and have my program get informed when user clicks a point on the graphics. Is there any way to do it? For example, a custom component available?

Kind regards,

Tolga

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You might be able to do this by calling a HTML VIEWER function give the URL as your Graphic file HTML and define your Hotspots in the HTML page, but I have no idea how you'd get the result of where they clicked on it.

2 REPLIES 2

Former Member
0 Kudos

You might be able to do this by calling a HTML VIEWER function give the URL as your Graphic file HTML and define your Hotspots in the HTML page, but I have no idea how you'd get the result of where they clicked on it.

Former Member
0 Kudos

Also have a look at the Environment > Examples > Controls Examples in SE38 and under Picture Control the demo program SAP_PICTURE_DEMO. The "event_handler_picture_dblclick" in this code shows you how to trap the "mouse_pos_x" and "mouse_pos_y" positions, so if you run this program and then double click one of the pictures you will get something like "DoubleClick Upper Picture 75 44" or "DoubleClick Lower Picture 71 68" depending on which picture and where you double click on each.

Jonathan