>DisplayX and DisplayY can also be used for that ...
Not if I want to know the position and size of hotspot or buttons (I forgot to mention I also use the GetPostSize() function). I don't believe you can use DisplayX in order to get the position of a hotspot. Second, DisplayX (as far as I know) only works with already displayed objects, not with objects who aren't displayed yet. I use GetPostSize and GetPostPoint in my initialization sequence at start up. The Test function is only used to display a message whenever the cursor is within a hotspots boundaries.. Like this:
Initialize: HotspotPos := GetPostPoint( @"Hotspot" ; #response) HotspotSize := GetPostSize( @"Hotspot" ; #response)
Calc in Display Icon {Test( CursorX > HotspotPos[1] & CursorX < HotspotPos[1] + HotspotSize[1] & CursorY > HotspotPos[2] & CursorY < HotspotPos[2] + HotspotSize[2] ; "Tooltip" ; "")}
Sebastiaan
-- The AWARE List http://www.e-media.nl/aware/index.html
Search the Archives http://www.e-media.nl/aware/search.html
Netiquette: - Use descriptive subject fields - Use subject prefixes (A5 , A5Mac , A5Web , KO , UCD , OT)