Re: scroll bar for image control by gibbs
gibbs
Tue Jun 29 20:36:01 CDT 2004
thank you turiya and bennett for providing strong information. i will check the site and will let you know as it will be greate acheivement for me with the help of you and turiya.
turiya i have received your class but three days i was sick so could not do much on the computer, i hope i will be able to complete it now.
regards
gibbs
"Jeff Bennett" wrote:
> "gibbs" <gibbs@discussions.microsoft.com>
> wrote in message news:<A2DAA829-CAF9-4D42-A620-27E09CFB3DF7@microsoft.com>...
>
> > i am working on the project which shows the picture of toys
> > along with its packing list and other details. The problem
> > is some pictures are two big and cant fit into one form.
> > therefore, i tried to change the stretch property to 1 or 2
> > instead of default clip so that the size of photo can be
> > reduced and can be easily viewed. But some photos especailly
> > the big photos after changing the property are not clear.
> >
> > can we not provide scroll bar or something like that.
> > I mean to say can we drag the photo to see it full.
> > Does image control has some property which can function
> > like this. It will be great help as the project has been
> > already completed and this issue has arrised now.
> > regards
> > gibbs
>
> Unfortunately I don't think Picturebox in FoxPro allows
> child controls. If I'm wrong then there is simple solution.
> Search on "Scrollable Viewport" and you should find lots
> of messages. Basically idea is to place a large picturebox
> inside another picturebox. Your image is placed in large
> picturebox which is only partially visible due to boundaries
> of the container ( smaller picturebox). You then add seperate
> scrollbar controls and adjust the Top and Left properties of
> the large picturebox in order to scroll in response to the
> user dragging on scrollbar controls. This is very common
> practice in Visual Basic or C - but as I say I'm not sure
> if it is supported in FoxPro.
>
> If you are open to a commercial control then there is
> EASY solution. Check out our MetaDraw control. MetaDraw
> will give you both options - Scrolling and Zooming/Shrinking.
> You can enable either or both for end-user.
> MetaDraw is easy to use - just call the LoadPicture method
> to load the image. Scrollbars will show up automatically
> if required ( if image is too large ). To resize the image
> to the size of the control just set the AutoScale property,
> or you can set the ZoomFactor property to resize to any
> proportion relative to original size.
>
>
> I would be happy to send you further information.
> Meanwhile take a look at MetaDraw at www.Bennet-Tec.Com
>
> * * Please include a copy of this note with your reply
>
>
> -----
>
> Jeff Bennett
> Jeff@Bennet-Tec.Com
>
> * Bennet-Tec Information Systems, Inc
> * 50 Jericho Tpk, Jericho, NY 11753
> * Phone 516 997 5596, Fax - 5597
> * RELIABLE Components Make You Look Sharp!
> * TList/Pro * ALLText HT/Pro * MetaDraw *
> * Custom Software Development Services Too.
> * WWW.Bennet-Tec.Com
>
> =================== ===================
>