Issue modifying elements in onSHow

Hi,

I have a solution with 1 main form, mainly showing a tabpanel with a bunch of subforms.

One of the forms on a tab has an onShow method attached, that basically just hides a couple of elements of this form.

When I start a client and open this solution and then click the tab with this form on it, I first see the entire form with all the elements and only after a half a second, the elements are hidden.

My understanding was that the onShow method was executed BEFORE the form is shown. (to use the onLoad method is not an option here).

Is this a bug, or is my assumption incorrect?

Paul

Servoy Client
Version R2 2.2.4-build 336
Java version 1.5.0_05-b05 (Windows XP)

Anyone?

This issue causes confusion at our clients. Then open a form and quickly see some elements that disappear within a second… Not so nice…

Paul

no onShow is done when the data is there (instead of onLoad)
So when the data does come in a bit later the onShow is also done later.
doing it in the onLoad is the only way.

OK, tnx for the response, I’ll try to modify my solution accordingly

Paul