FoxInCloud
Scaling in the browser
Gravatar is a globally recognized avatar based on your email address. Scaling in the browser
  Paul
  All
  Feb 14, 2019 @ 12:51pm

Hi,

I have a form that is resized to full screen (_screen.width & height) in its Init, but in the browser the form appears in the top left of the page and only about a quarter of the area.
The controls are resized too (not using .Anchor, but a 3rd-party resize control) and the controls have resized correctly* to match this scale.

.

In classic mode :
What options do I have to scale the size of the form in the page?
Also, options to centre the form in the page ? .
.

.* = except for the grid, which expands (the sliding animation) at runtime to be too large. I haven't worked out why yet.

Thanks
Paul

Gravatar is a globally recognized avatar based on your email address. re: Scaling in the browser
  FoxInCloud Support - Thierry N.
  Paul
  Feb 15, 2019 @ 02:08am

Hi Paul,

Maybe seeing the generated HTML and XHR requests would help elaborate a better advice, however:

  1. in form code, replace _Screen.Width/Height by thisForm.wViewPortWidth/Height, working in both desktop and web modes
  2. to center the form, set form.AutoCenter = .T.
  3. When and where do you trigger the resize by your third-party control?
© 1996-2019