Maybe this is helping: Sometimes there are some Form-Objects outside the
visible Area at the Form. Make sure they are _not_ below the "imaginary"
horizontal line of the Form-Objects and Form-Parts you are moving via Code.

Bernd

2017-12-28 14:35 GMT+01:00 Jeremy Roussak via 4D_Tech <4d_tech@lists.4d.com>
:

> I have a form with several pages. Movement is controlled by a tab object.
> The pages differ greatly in the number of fields they contain and some are
> much larger than others: the width is constant (and the form is not
> resizable by the user) but the height varies.
>
> I resize the window when the user moves between pages. To make it look
> nice, I animate the resize by using SET WINDOW RECT in a tight loop, which
> takes about a quarter of a second.
>
>         $inc:=($newBottom-$b)/6
>         If ($inc#0)
>                 For ($i;$b;$newBottom;$inc)
>                         SET WINDOW RECT($l;$t;$r;$i)
>                 End for
>         End if
>
> In v14, this worked nicely. When moving to a larger page, the contents
> remained static while the window enlarged or shrank, and then the new
> contents were redrawn.
>
> In v16, the contents seem to be bound to the bottom of the window, not the
> top. So when the window grows, all the contents move downwards, leaving a
> blank area at the top (https://www.dropbox.com/s/
> 8rdoljxmq2wafxp/Screenshot%202017-12-28%2013.24.37.jpg?dl=0 <
> https://www.dropbox.com/s/8rdoljxmq2wafxp/Screenshot%
> 202017-12-28%2013.24.37.jpg?dl=0>). When it shrinks, the contents move
> upwards (https://www.dropbox.com/s/9jqqejrkbhwrd3k/Screenshot%
> 202017-12-28%2013.30.17.jpg?dl=0 <https://www.dropbox.com/s/
> 9jqqejrkbhwrd3k/Screenshot%202017-12-28%2013.30.17.jpg?dl=0>).
>
> Is this a bug? Is there a reason for it? Is there an alternative way of
> doing what I’m trying to get done? I’m using SET WINDOW RECT because it’s
> very fast and it doesn’t require a pass through the event loop, which ended
> up being very slow.
>
> Jeremy
>
>
> Jeremy Roussak
> j...@mac.com
>
>
>
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **********************************************************************
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to