Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scrollbar
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00714131
Message ID:
00714168
Views:
21
I think what you're missing is to resize your pageframe, it is ok that you enable or disable the scroll bar of the form but if you don't resize the pageframe according to the new size of the picture you wont get nothing

so try some code like this
with thisform.pageframe
     *:the image is wider and taller than the pageframe
     if (.page1.image1.width > .Width) AND (.page1.image1.height > .Height) then
           .ScrollBars = 3 && Both vertical and Horizontal 
     endif  
     *:the image is just wider 
     if (.page1.image1.width > .Width) AND (.page1.image1.height <= .Height) then
           .ScrollBars = 1 && Just Horizontal 
     endif  
     *:the image is just taller 
     if (.page1.image1.width <= .Width) AND (.page1.image1.height > .Height) then
           .ScrollBars = 2 && Just Vertical
     endif  

     *:Resizing the pageframe if necessary
     if (.page1.image1.width > .Width) 
           .Width = .page1.image1.width + 10
     endif  
     *:Resizing the pageframe if necessary
     if (.page1.image1.Height > .Height) 
           .Height = .page1.image1.Height + 10
     endif  
endwith
hope this makes sense
.......
DO WHILE .T.
      ME.Work()
ENDDO
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform