Visit Gigasoft's Web Site
 ProEssentials v11 Help

GetHotSpot

JS  Pego1.getHotSpot()  Methods in JavaScript

Scope

Pego, Pesgo, Pe3do, Pepso, Pepco

 

public ProEssentials.Structs.HotSpotData PeFunction.GetHotSpot( )


public int PeFunction.GetHotSpot(int x, int y )

 

Parameter

Description

x

X location in pixel coordinates to search for a hot spot

y

Y location in pixel coordinates to search for a hot spot

 

The method with no parameters simply returns Structs.HotSpotData for any possible hotspots under current mouse coordinates. 

 

The method with arguments will test if a hotspot is under the provided x, y coordinates,

Both these will let you know if the mouse if over a hot-spot without the user having to click or double-click. You will normally use this function within a MouseMove event.  Use GetHotSpotData to determine which hot spot type if any was found under the x, y coordinates.

  

Comments

See example 014 within the demo.

 

See Also: LastMouseMove, GetHotSpotData

 

Returns

NonZero if the function was successful, otherwise Zero.

 

Comments

PeFunction.GetHotSpot members of Pego.PeFunction, Pesgo.PeFunction, Pe3do.PeFunction, Pepso.PeFunction, Pepco.PeFunction