Oh. Now I think I understand, but this version
...
with (Sender as TShape) do ...
is somehow more understandable for me in this case.
I need that because I'm creating a crude version of interactive map. In editor part/mode in my program user will add Towns on map. These objects will hold few properties such as location on world map (BGRABitmap X,Y coords), Town Map (Image), Description and maybe some more. All these towns created/placed on World Map will be saved in a XML WorldMapFile and then user will be able to load WorldMapFile.xml and all Town objects will be placed on World Map object if You know what I mean. Also there will be other types of objects that can be placed on WorldMap (Dungeons, Villages, Monuments, Special Places etc), but they will be propably the almost the same as Towns (image, location, description). User will be able to click on each object which will show a window or something with images, descriptions etc.
I hope to create a client for solo playing Mythic RPG if You've heard about it
.