Information générale
Catégorie:
Contrôles ActiveX en VFP
You can't put scrollbars on an image using the VFP Image class, however you can simulate this behaviour using a scrolling form.
Create a form with the BorderStyle = 3 (sizeable) and ScrollBars = 3 (both) and set the initial size of the form to something reasonable. Drop the standard vfp Image class onto the client area and set its picture property to an image file. Now if your image is larger than the client area, scroll bars will appear on the form and you will now be able to scroll around the form.
It should be noted that there is probably a limitation on the size of the "virtual" form in VFP so really big images (x and y pixels) might not scroll to the full extents of the image?
HTH
Neil
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement