Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scrolling a bitmap
Message
De
19/11/1997 10:52:25
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00060435
Message ID:
00061139
Vues:
39
>>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)


Are you talking about using the mouse events in conjunction with a scroll bar?

I've had a lot of problems with this because it is possible to move the scroll bar with the mouse button held down and the place the pointer outside of the form. Or place the pointer beyond the scroll bar on the form.

Dan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform