Scripted formchanges remain after closing dialog

Hi,

If you have a form in dialog and you script some changes to the form (enabling/disabling, visible/not visible etc), these changes will still be there after you close the dialog and then open it again.

Don’t know of this is a bug or expected behavior, but I don’t really like it. It means I have to bring the form back into it’s original state when closing the Dialog. that means a lot more coding…

From a caching point of view, I can understand this behavior a bit. Maybe a reset form function to bring a form back to it’s original state?

Paul

this is expected behaviour.
There is no difference between a form that you show as a tab or main form in the main window or in a dialog.

But based on what do you enable/disable things ect?
Why isn’t that same code triggered the second time you show that dialog?
So that it always has the right visibility/enabled things?

Well, for example a button has a certain text. If a certain situation occurs, the text is changed.

Just have to add the code the undo tha change. It’s all doable, but means more coding.

Paul