TfrxDialogControl event for initialize?

renerene Prague, Czech Republic, Europe
edited June 2006 in FastReport 3.0
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

Comments

  • renerene Prague, Czech Republic, Europe
    edited 12:38AM
    Ok. I solved my issue this way:

    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

Leave a Comment