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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP, autosize, pageframe 1

Status
Not open for further replies.

taterday

Programmer
Jan 28, 2009
183
US
The software crashes with a program error when a form containing a pageframe was shrunk by a user

Page frame can not be sized that small.

Are there any way to trap for this? The other forms are fine when they do this. I can't image why they do this.

Thank you.

 
You cannot reduce a pageframe smaller than the tabs size, And that is pretty small, Why does your user want to reduce a form that small??? Why not just minimize it...
Remove the tabs from the page frame and you can reduce the size without the error...
 
I need the tabs for them to get around to the 8 pages. I know it does not make sense. Are there anyway to trap this without crashing? Are stop the sizing down pass the tabs?

I think sometimes they try to crash it.

Thank you,
 
Taterday,

Work out the minimum acceptable size for the form. Then set its MinHeight and MinWidth accordingly.

In fact, you should do this for all resizable forms, not just those with a pageframe.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top