Omnis refusing to change $top of a field
Bas,
So, to be clear, after entering a code, the entry box moves down the
height of the sub window, lets say 30 points, so you just add 30 each
time to the $top figure, and then the previous $top figure is used for
the subwindow $top?
So, on a refresh, you set $top to 0, or 1… and that is what fails?
Or something else?
Maybe the code that is calculating $top is wrong when the effective list
is empty?
Maybe it doesn’t think the list is empty at that point.
Hard to guess without seeing any code…
regards
Phil Potter
Based in Chester in the UK.
On 06/06/2017 05:03, Bastiaan Olij wrote:
> Hey All,
>
> I hope someone has some wise words here because I’m absolutely stumped
> by this and I’ve lost well over an hour on this seemingly insignificant
> problem.
>
> I have a scrollbox with an entry field on it. When I type something into
> the entry field and tab out in the evAfter I detect that the entry field
> is not empty, add a new record into a structure, clear the entry field,
> add a subwindow to the scrollbox that presents the new record and call a
> routine that will position the subwindows and entry field so the entry
> field moves down.
>
> I can repeat this to add more and more records and it all works beautifully.
>
> Except for the very first time.
>
> When I reposition the fields Omnis refuses to change the $top of my
> entry field. The notation is correct, after the fact I can use the
> notation inspector to change the $top and it works, the 2nd, 3rd, 4th,
> 10th, 100th time all work fine, but the very first time this logic runs
> it fails each and every time.
>
> I have made dozens of windows just like this without any problem.
>
> It is frustrating the ….. out of me 🙂
>
> Cheers,
>
> Bas
>
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com