WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Samples

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Hotspot Dialog Demo

 Keywords: Image Map ImageMap Hot Spot HotSpot Dialog Mouse MouseInfo Timer WinPostition GetPixel

Question:

What I want to know is if there is some fancy pixel math that will allow a user to load a 6.2 dialog and by clicking on a piece of the pie, execute code, much like clicking on an imagemap in HTML.

Answer:

Sample 1:
This sample uses a Dialog Timer Event procedure, MouseInfo and WinPostition to calculated where the user clicked the mouse:
https://techsupt.winbatch.com/techsupt/HotSpotDemo.zip


Sample 2:
This sample uses a Dialog Timer Event procedure, MouseInfo and GetPixel API to determine if the user clicked the mouse on a certain color on the screen:
https://techsupt.winbatch.com/techsupt/Demo-Pixel-Color.zip


Article ID:   W17746
Filename:   Hotspot Dialog Demo.txt
File Created: 2019:08:14:09:16:08
Last Updated: 2019:08:14:09:16:08