PurePointChild (Window.l)
Previous  Top  Next

Used to Identify what Gadget a PurePoint is Over.

Use:
hGadget=PurePointChild(Window)

Returns Handle of Gadget.



Example:

#Main=0
#List=1

If OpenWindow(#Main,0,0,400,300,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"Demo")
 
ListIconGadget(#List,10,10,300,200,"Demo",100)  
 

hPoint=PurePoint("Cross.pvp")  

quitMain=0  
Repeat  
If PurePointChild(#Main)=GadgetID(#List) ;<-- Checks is PurePoint is over ListIcon  
UsePurePoint(hPoint) ;<-- Displays PurePoint only over ListIcon  
EndIf  

Select WaitWindowEvent()  
Case #PB_Event_CloseWindow  
quitMain=1  
EndSelect  
Until quitMain  

FreePurePoint(hPoint)  
EndIf
End