Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scrolling a bitmap
Message
 
To
15/11/1997 02:57:55
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00060435
Message ID:
00061077
Views:
38
>I have a form which displays a .Bmp file using an Image control. I also have a Vcr control which is used to navigate the bitmaps which come from a table. The table just stores the name and path of the .Bmp file which I assign to the Picture property of the Image control.
>
>Now, the problem is, that the .Bmp files can be of varied sizes and I have a fixed area on the form in which I want the picture to be displayed. So that means, I need to have both the scroll bars attached to the Image control which can be swiftly used to view the picture.
>
>I tried to achieve, by using a List Box as well as a Grid control. But in vain.
>May be I didn't go the right way. Can anyone help me out with this?
>
>TIA.

You can move the picture around with the mouse only if you put some code in the MouseDown() and the MouseMove() events.

In the MouseDown event keep (in a form properties) the mouse x,y position and the left and top properties of your picture.

In the MouseMove, if the left button is down, reset the left and top properties of the picture relative to the mouse x,y and picture top,left saved before.

HTH

:0)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform