Lazarus
Using the Lazarus IDE => General => Topic started by: AlexTP on April 17, 2021, 09:21:35 pm
-
Subj. So, my custom form class, which inherites from another my own class, cannot declare "Show; override" and call 'inherited Show'? It's bad.
-
But SetVisible is virtual.
-
Subj. So, my custom form class, which inherites from another my own class, cannot declare "Show; override" and call 'inherited Show'? It's bad.
Could be worse: DoShow, which implements Show, is virtual, though protected. :)
-
OK, if it is Delphi compatible, let it be. Will use DoShow.
-
Subj. So, my custom form class, which inherites from another my own class, cannot declare "Show; override" and call 'inherited Show'? It's bad.
What is it you are actually trying to accomplish? There are ways to detect when the Form's window actually changes visibility, rather than when it is requested to change.
-
I needed the OnShow reaction in the base Frame, and needed 2nd reaction in child of that Frame (2nd reaction must call inherited one).