Rank: Member
Groups: Member
Joined: 3/23/2006(UTC) Posts: 17
|
Hi,
Is it possible at all to move the floating image using buttons?
[UP] [LEFT] [RIGHT] [DOWN]
I want to do this so that I can restrict the movement. In other words the image can only move 10 pixels up, 10pixels down etc.
Thanks you.
Regards, Barry
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
Sure, you can this. Just modify coordinates in these buttons handler (in floating image app these variables store coordinates - lngTop and lngLeft). E.g. for left button it will be looking like this: Code:Private Sub CommandMoveLeft_Click()
lngLeft = lngLeft - 10
End Sub
Hope this helps. Edited by user Thursday, December 20, 2007 4:50:04 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Member
Groups: Member
Joined: 3/23/2006(UTC) Posts: 17
|
Thanks Andrew. You forgot to add: Code:BitmapViewer1.FastRefresh
;-) Edited by user Thursday, December 20, 2007 4:50:29 PM(UTC)
| Reason: Not specified
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.