Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 8 of 8 total
Thread Form Height.
Wed, Jul 1 2015 11:55 PMPermanent Link

Steve Gill

Avatar

I'm not sure if this has been answered before.  I seem to recall something similar was discussed in the past but I couldn't find it when searching.

I have a project where a form's height is higher than what will fit on the screen.  

It works fine in the EWB IDE, but when viewed in a browser the bottom half of the form/page is cut off and there's no way to view it unless I zoom out.  The browser's vertical scroll bar doesn't appear.

Does anyone know what I need to do to make sure the whole page can be viewed?

Thanks.

= Steve
Thu, Jul 2 2015 12:09 AMPermanent Link

Steve Gill

Avatar

It might actually be a issue with Firefox because I resized the browser and the scroll bars suddenly appeared. Smile

= Steve
Thu, Jul 2 2015 12:13 AMPermanent Link

Steve Gill

Avatar

Actually with all my fiddling around trying to get it to work I had forgotten I added this line to the OnShow event:

  Application.Surface.Scrollbars := sbVertical;

So it was a combination of adding this line AND resizing the browser Window.

= Steve
Thu, Jul 2 2015 3:37 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Steve,

<< It works fine in the EWB IDE, but when viewed in a browser the bottom
half of the form/page is cut off and there's no way to view it unless I zoom
out.  The browser's vertical scroll bar doesn't appear.

Does anyone know what I need to do to make sure the whole page can be
viewed? >>

From the example applications:

procedure TMainForm.MainFormCreate(Sender: TObject);
begin
  Application.ViewPort.OverflowY:=otAuto;  <<<< Vertical scrollbar for the
browser
  with Application.Surface do
     begin
     Constraints.Min.Height:=(Self.Height+40);
     Background.Fill.Color:=clElevateFillGray;
     end;
end;

The sample application forms are set up to be centered
(Layout.Position=ptCenter), but that doesn't really matter.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Jul 2 2015 3:39 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Steve,

<< It might actually be a issue with Firefox because I resized the browser
and the scroll bars suddenly appeared. Smile>>

That's an EWB bug - it isn't triggering a re-layout when first initialized,
which is preventing the scroll bars from appearing.  However, your solution
is in my previous reply.  IOW, don't enable the scrollbars on the
application surface if you want native browser scrollbars - use the
application viewport overflow properties instead.

Tim Young
Elevate Software
www.elevatesoft.com
Fri, Jul 3 2015 12:32 AMPermanent Link

Steve Gill

Avatar

Thanks Tim.  I added your code as suggested but something weird is happening.  If I move the mouse cursor away from the form and into the surface background area, I get a busy cursor and several blank information message dialogs.

= Steve
Fri, Jul 3 2015 11:20 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Steve,

<< Thanks Tim.  I added your code as suggested but something weird is
happening.  If I move the mouse cursor away from the form and into the
surface background area, I get a busy cursor and several blank information
message dialogs. >>

Please email me the project that is doing this, and I'll take a look.  Most
likely there's something in an OnSize event handler that is causing
problems.

Tim Young
Elevate Software
www.elevatesoft.com
Sun, Jul 5 2015 12:50 AMPermanent Link

Steve Gill

Avatar

<< Please email me the project that is doing this, and I'll take a look.  Most
likely there's something in an OnSize event handler that is causing
problems.  >>

Emailed. Thanks. Smile

= Steve
Image