Results 1 to 2 of 2

Thread: find out map coordinates the easy way..

  1. #1

    find out map coordinates the easy way..

    Hi guys!

    I think I need a little advice again...

    As I (maybe) mentioned before I'm working on a tile-based iso engine in DelphiX.
    In my editor the user should be able to change the textures of the tiles by selecting a texture from a list and then just clicking in the map where he wants to have the texture.
    For this I need to know (of course) where the user has clicked on the map.
    Well, I could find out the cursor position on the screen and convert these values to coordinates in my dxdraw and then in map-coordinates. But this is quite circumstantial and I think there must be a way to do it easier..

    Can I somehow find out the cursor position in the component I clicked in without all the calculating?

    thanx for any ideas!

    sven
    42 is the answer to all questions.
    <br />But what is the question to all answers?

  2. #2

    find out map coordinates the easy way..

    Objects derived from TControl have OnMouseDown etc. events

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •