Why doesn't my scrollbars show on my form (VFP 8)?
Below is an example of code where I have a grid larger than the width
and height of my form, but the scrollbars do not show on my form!

What am I missing here? THX - Mike Farnesi



MYFORM=CREATEOBJECT('FORM')
WITH MYFORM
.SCROLLBARS=2
.ADDOBJECT('MYGRID','GRID')
WITH .MYGRID
.TOP=0
.LEFT=0
.WIDTH=2000
.HEIGHT=2000
.VISIBLE=.T.
ENDWITH
.SHOW
ENDWITH

Scrollbars don't show on my Form. by Doron

Doron
Fri Aug 01 22:37:38 CDT 2003

Hi Mike,

Place some fields on the form and then reduce its size. The scroll bar will
be shown right away.
I tesed it and there was not any problem.

Regards,

Doron

The Farber Consulting Group, Inc.

The Creator of VisualRep - Report and Query Engine
http://www.dfarber.com/VRep.htm







Re: Scrollbars don't show on my Form. by Stefan

Stefan
Sat Aug 02 01:30:41 CDT 2003

Hi Doron,

Isn't the problem rather that the .ScrollBars poperty must be
set before the form actually exists? For example:

LOCAL oForm
oForm = CREATEOBJECT('Testform')
*!* oForm.ScrollBars = 2 && would not work
oForm.Show(1)

DEFINE CLASS Testform as Form
ScrollBars = 2 && required
ADD OBJECT Text2 as Textbox WITH ;
Top = 600, ;
Left = 50
ENDDEFINE


-Stefan

"Doron Farber" <doron@dfarber.com> schrieb im Newsbeitrag
news:uVLGsdKWDHA.1872@TK2MSFTNGP12.phx.gbl...
> Hi Mike,
>
> Place some fields on the form and then reduce its size. The scroll bar
will
> be shown right away.
> I tesed it and there was not any problem.
>
> Regards,
>
> Doron
>
> The Farber Consulting Group, Inc.
>
> The Creator of VisualRep - Report and Query Engine
> http://www.dfarber.com/VRep.htm
>
>
>
>
>
>


Scrollbars don't show on my Form. by Doron

Doron
Sat Aug 02 10:51:30 CDT 2003

Hi Stefan,

You need to define this property at the time of instantiation, the way you
did with code below works fine. Also you can create a form by MODI FORM test
and set the property of the ScrollBars = 2 and that should work for you as
well.

>LOCAL oForm
>oForm = CREATEOBJECT('Testform')
> *!* oForm.ScrollBars = 2 && would not work
>oForm.Show(1)

>DEFINE CLASS Testform as Form
> ScrollBars = 2 && required
> ADD OBJECT Text2 as Textbox WITH ;
> Top = 600, ;
> Left = 50
>ENDDEFINE

Regards,

Doron

The Farber Consulting Group, Inc.

The Creator of VisualRep - Report and Query Engine
http://www.dfarber.com/VRep.htm





Re: Scrollbars don't show on my Form. by Igor

Igor
Sun Aug 03 08:50:22 CDT 2003

Hi, Mike!
You wrote on 1 Aug 2003 15:21:08 -0700:

MF> Why doesn't my scrollbars show on my form (VFP 8)?
MF> Below is an example of code where I have a grid larger than the width
MF> and height of my form, but the scrollbars do not show on my form!

MF> What am I missing here? THX - Mike Farnesi

MF> MYFORM=CREATEOBJECT('FORM')
MF> WITH MYFORM
MF> .SCROLLBARS=2
MF> .ADDOBJECT('MYGRID','GRID')
MF> WITH .MYGRID
MF> .TOP=0
MF> .LEFT=0
MF> .WIDTH=2000
MF> .HEIGHT=2000
MF> .VISIBLE=.T.
MF> ENDWITH
MF> .SHOW
MF> ENDWITH

What screen resolution do you run at? there is known limitation for
scrollable forms - their size can't exceed screen resolution*2, so if you
run at 800*600 then the largest form you can have is 1600*1200.

WBR, Igor