I created a form to look correct on a 1024 X 768 screen since all the network machines are 17 inch monitors. Some people still set their screen stting to 800 X 600 and when they open the app, it overflows the screen. What is the best way to deal with this?
In that select Click Free Stuff
Click Developer Tools
Click Stretchy Resize Control.
2. Then unzip and include the STRETCH.VCX class in your project.
3. Drag and drop the class in your form.
4. In the ReSizeEvent of the form, put the code..
ThisForm.cmStretcher1.Stretch(THIS)
5. Now in your form ActivateEvent, put the code
This.WindowState = 2 && Maximized
There .. voila ... you will get all your fonts resized to your forms size. Not only it does this now...... everytime, the user resizes the form using mouse, the fonts get resized automatically, since the resize event gets fired everytime, the resize takes place.
Hope this helps.. ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK
Can I extend on this discussion?
We have built the project in VFP6, 800x600 using a monitor 19". . .End users will have laptops, desktops, etc. with various monitor sizes, How can you be sure all end users will be able to see that which is designed 800x600?
Hi,
When you set the windowstate as I mentioned above, the form is maximized. Then the font sizes are proportionately adjusted, so you will get the whole thing in the visibility. Unless you make something so negligible in size, this works nice.
ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK
Hi All,
Can anyone tell me how to drag a class and drop it on a form? This may be stupid but I tried dragging stretch.vcx from it's folder in explorer to the form while in the modify mode.
Hi Weedz - I had tried that also and when I drag the class onto the form, the cursor turns into a circle with a slanted line through it and won't let me drop it on the form.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.