Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Screen Size 4

Status
Not open for further replies.

petes123

Technical User
Jun 8, 2001
11
US
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?
 
1. Look in
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?

Appreciate your feedback!

Bill X-)
 
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 :)
 
This will probably sound stupid but how do you drop a class into the form. I understand all the rest of the instructions.
 
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.
 
As Ramani said, add the VCX file to your project. Then put your form (class) in design mode and open the project.

Then drag the stretch class from the project manager (tab classes) unto your form.

HTH,
Weedz (Wietze Veld) They cling emotionally to code and fix development rather than choosing practices based on analytical assesments of what works best. - Steve McConnell
 
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.
 
Ramani and Weedz - Thank you both so much for the time. I understand it now and learned a lot. Thanks again.

Pete :)I
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top