Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
BarryP  
#1 Posted : Sunday, April 09, 2006 11:03:44 AM(UTC)
BarryP

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
Andrew  
#2 Posted : Thursday, April 13, 2006 3:19:21 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 865

Thanks: 2 times
Was thanked: 25 time(s) in 25 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

BarryP  
#3 Posted : Wednesday, May 03, 2006 8:04:35 AM(UTC)
BarryP

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

Users browsing this topic
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.