What I’m trying to do:
I am trying to understand what is Show/hide events or how they works for components like textbox/labels etc.
What I’ve tried and what’s not working:
I think components like textbox/labels are added from design tab and it is always visible when the app is running. So even if i have added any code under show/hide event class, how to check whether it works or not.
These events are triggered whenever the object’s visible
attribute is assigned a value.
To experiment, and see for yourself, you could establish a couple of buttons, one to set an object’s visible
to True
, and the other to False
.
I was surprised to find that the show
event was triggered whenever visible
was set to True
– including when it was already True
.
Thanks @p.colbert, What are use cases of Hide event?
It depends on the intended logic of your App. For example, you might want to save a (changed) datum when it disappears from the screen.