TfrxDialogControl event for initialize?
rene
Prague, Czech Republic, Europe
Hi there!
I have tried to prepare custom dialog control (for DB references and other special DB calls) but I have a little problem which is that I didn't have any event / state / something how to identify that control is already created and its property is loaded (something like OnDefinitionLoad ...). I need to fill my control with data from DB but only after all properties is set. At this time I have to propagate some FillData method and explicitly call it in each report during OnActivate of Dialog but I hope there is some possibility how to call it in component definition to aviod this manual and redundant work.
Any ideas?
Rene
I have tried to prepare custom dialog control (for DB references and other special DB calls) but I have a little problem which is that I didn't have any event / state / something how to identify that control is already created and its property is loaded (something like OnDefinitionLoad ...). I need to fill my control with data from DB but only after all properties is set. At this time I have to propagate some FillData method and explicitly call it in each report during OnActivate of Dialog but I hope there is some possibility how to call it in component definition to aviod this manual and redundant work.
Any ideas?
Rene
Comments
Because even Component.IsDesigning nor Component.Report.Engine.Running was not the right way I have to redefine Report.OnRunDialog (well I had already some code in there) and look for all object of my *Special*ComboBoxes in Objects of given Page (dialog page). On every one I have to run some FillData method of ComboBox explicitly. It looks like it is working well (in DesignReport -> DoPreview and also in clean PrepareReport).
Rene