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

Minimum form size

Status
Not open for further replies.

johnbuckley

Technical User
Mar 25, 2002
52
GB
Why cann't I have a form (with no title bar) less than 106 pixels wide? Is there any way to do this?

Or for that matter less than 21 pixels high, though I cann't see a use for that one.
 
johnbuckley

I haven't really found an answer to your question (most likely there are minimum values set by MS). And you will also notice that 16 for the height is the minimum when you use a title bar. But since FoxPro allows you to do things more then one way, coding it seems to ignore these minimums (minima?):
Code:
PUBLIC oform1

oform1=NEWOBJECT("form1")
oform1.Show
RETURN


	**************************************************
*-- Form:         form1 (c:\drop\form1.scx)
*-- ParentClass:  form
*-- BaseClass:    form
*-- Time Stamp:   08/25/02 05:50:06 AM
*
DEFINE CLASS form1 AS form


	Top = 0
	Left = 0
	Height = 10
	Width = 50
	DoCreate = .T.
	Caption = "Form1"
	TitleBar = 0
	Name = "Form1"


ENDDEFINE
*
*-- EndDefine: form1
**************************************************

Mike Gagnon
 
johnbuckley

To further my point you can go to 1 pixel for the height and the width with the above code.
Mike Gagnon
 
HI
You can do it also by code in your init event of the form..
This.Height = 10
This.Width = 50
:) ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Ramani

Have tested this?
This.Height = 10
This.Width = 50


Is still get 21 and 106...
Mike Gagnon
 
Hi Mike
You are right. I am stumped. No answer for this one. Code seems to work :) ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top