|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (2 bit)
Join Date: Jul 2005
Posts: 2
|
hi there this is my first time I post here, Ive taken some courses in C++ and Iam on my own now, but there are still alot of basic issues I need to work on so please do not mind the following question:
Iam working on a chess interface and I have an TBitmap for every stone, when a stone is to be moved it will be dragged onMouseUP I will check if hte new position is valid, if it is the stone will take its new position else it will return to its former position, the problem is that Iam not able to drag the image what I tried is the following : 1- on mouse down record initialX and initialY 2-While dragging change Top and Left of the TBitmap according to the X an Y coordinates of the event handler 3-OnMouseUp check for the validity of hte position of the TBitmap. Any help please?? |
|
|
|
|
|
#2 |
|
Professional gadfly
|
Knowing nothing else about what you are doing, I will take a shot: when you are dragging, after you change the X and Y coordinates of the TBitmap, you are going to need to redraw the screen to show the updated position of the TBitmap.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|