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 6:35PM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.