[Lazarus] Why is OnShow not executed?
frans
fjf.vanleeuwen at quicknet.nl
Thu Sep 28 12:20:28 CEST 2017
Hi
I'm using Lazarus 1.6.4 on Windows. I have a Form with a TPageControl
with 5 tabsheet components.
Every tab has his own OnShow procedure to set the latest data in the fields.
Every time the Form is shown I want the first tab to become visible.
Therefore the FormShow calls tab0.Show.
The first time the form shows it goes as I expect, the tab0 OnShow
procedure is called and the data is set.
But when I close the form while showing the tab0, and then later opens
it again, the FormShow is executed but tab0 OnShow is not. Apparently
the program 'sees' that tab0 is already shown, so executing tab0.Show is
not necessary. Is this as it should be?
To always execute the tab0 OnShow procedure I must call this directly.
Is this the correct way?
--
mvg
Frans van Leeuwen
M 06-51695390
---
Deze e-mail is gecontroleerd op virussen door AVG.
http://www.avg.com
More information about the Lazarus
mailing list