IET Community
Avoiding too much logic in Window Open events - Printable Version

+- IET Community (https://www.iet.uk/community)
+-- Forum: News and Views from IET (https://www.iet.uk/community/forumdisplay.php?fid=11)
+--- Forum: Tips and Techniques (https://www.iet.uk/community/forumdisplay.php?fid=10)
+--- Thread: Avoiding too much logic in Window Open events (/showthread.php?tid=38)



Avoiding too much logic in Window Open events - Darius Panahy - 2020-06-01

When flowing between windows in a Gen GUI application, it is good to have the window pop-up quickly, even if the data is not populated immediately, as this gives the user the feeling that something is happening.

If you put too much logic inside the Open event of the window, this perception changes because the window does not get physically displayed until the end of the Open event, thus giving the illusion that the application has hung, crashed or simply disappeared.

We’ve found that a good practise is to minimise the amount of logic (especially server calls) performed in the Open event, and if necessary use a TIREVENT within the Open event to trigger another event where the longer processing is performed. The window will then get displayed after the Open event so the user can at least see it is alive.


Originally posted on the IET Gen Development Blog