Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Manual scrolling on forms?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00028178
Message ID:
00028214
Views:
37
>I've created a form with a large image on it. The image doesn't fit entirely on the form so the user can move it around using the arrow keys. In the keypress even I just checked for the appropriate keys and changed the top and left properties for the form. It works fine.
>
>Now, however, I need to drop some other images on the form (on top of large image). The images need to stay at the same place relative to the large image. So, when the large image moves, the other images need to move. Originally, I figured thisform.SetAll("Top", TOP-10,"IMAGE") would be perfect for something like this, but apparently you can't evaluate anything in the second parameter (it thinks "TOP" is a variable in "TOP-10").
>
>Is there a better way to do this? I'd consider the MS Scrollbar control except that I've had so many problems trying to get it to work. Any suggestions?
>
>
>Michael G. Emmons
>(Has anyone noticed I only sign my name "VFP Programmer Extroidinaire" when I'm answering a question and not when I am asking one? ;> )

Michael (and yes, I've noticed the "extraordinaire" trick <s> ) Can you add a property with the relative positions of top/left between the old image and each new image? Then as you change any one of them you can adjust all of them at the same time.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform