Re: Screen resolution, scroll bars, etc

Author: MB Software Solutions, LLC

Posted: 2010-07-20 at 02:32:18

Andrew Stirling wrote:

> Mike

> I have:

> Form Init

> this.nborderstyle = 3

> this.ScrollBars= 3

> *DODEFAULT()

>

> Form Activate

> IF this.Height + 100 >_vfp.Height &&-100 < this.Height

> this.Top = 3

> this.Height = _vfp.Height-110 &&_screen.Height-40

> ENDIF

> IF this.width + 60 >_vfp.width &&-50 < this.width

> this.Left = 3

> this.width = _vfp.width-50

> ENDIF

>

> This pops up a scroll bar if the form is bigger than the screen

> availability.

> Obviously best to put this in your default form class.

Cool. I never designed scrolling forms; heard via here years ago that I

thought they were problematic, so I avoided them.

--

Mike Babcock, MCP

MB Software Solutions, LLC

President, Chief Software Architect

http://mbsoftwaresolutions.com

http://fabmate.com

http://twitter.com/mbabcock16

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/4C4542F2.4040302@mbsoftwaresolutions.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 MB Software Solutions, LLC