OnCreate Event Model for Delphi Frame

I am developing a Delphi frame and you need to first load the list of business objects into the grid control. Delphi frames do not have OnCreate events, so what is the best way to replicate this? Should I override the constructor as suggested on About ? Should I just make a public procedure loadData()and call the parent container when it is ready to be created?

I want all child controls to be loaded and ready to work before populating them with data, and I am not familiar with the hierarchy of creating Delphi components.

+3
source share
2 answers

. , , . onCreate, , . , LoadData() - .

, , , Frames . LoadData .

. , , .., .

, gui . , / /. - FormManager, /, . , , , .

+2

:

  • , - , , , (, )

, , , - .

(, , , , "LoadData" , - , ...)

0

Source: https://habr.com/ru/post/1759890/


All Articles