|
-
Oct 10th, 2001, 08:53 PM
#1
Thread Starter
PowerPoster
BitBlt: tile dragging challenge
Hi all,
I am trying to develop an app that will ease repetitive drawing tasks (in particular drawing layouts for train tracks).
There are only so many possible layouts, so I am trying to do a prog where the user can just drag a bunch of tiles around to make their pic.
My problem: I don't want to draw a tile for every possible combination of tracks, like when two tracks cross over:
|
_|____
|
|
I only want to draw a set of tiles which are standard, like a left-to-right track, an up-down track etc, and let the user layer these as they choose.
I have experimented with the BitBlt thingy, but I am having problems in that I don't know how to reference the tile being dragged when the DragDrop event is raised in the main picture box.
The DragDrop event passes me the Source, but when using BitBlt and masked pictures, where the mask is attached to the tile, I do not really want my users to see the half of the pic which is the mask.
But the drag drop only passes the source of the tile, not the source of the mask if I split them up?
Any suggestions?
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|