No modal configuration dialog

I had to develop a new chart object for use within fastreport because for my needs the standard teeChart was not sufficient.
Since the configuration dialog of this object is rather complex, because the object has many properties, I have the problem that the result of the new settings will manifest only after closing the configuration window.
I would like to know if there is a way that allows me to directly assign the changes made in the setup window without having to confirm with the OK button, the same way of working of the teeChart's configuration dialog when using it on a form of Delphi!
I also thought of bringing in the dialog box a copy of the chart itself so to check all the new changes directly, but I'd rather use a more elegant solution!

Lorenzo

Comments

  • edited 1:17AM
    lorenzob wrote: »
    I had to develop a new chart object for use within fastreport because for my needs the standard teeChart was not sufficient.
    Since the configuration dialog of this object is rather complex, because the object has many properties, I have the problem that the result of the new settings will manifest only after closing the configuration window.
    I would like to know if there is a way that allows me to directly assign the changes made in the setup window without having to confirm with the OK button, the same way of working of the teeChart's configuration dialog when using it on a form of Delphi!
    I also thought of bringing in the dialog box a copy of the chart itself so to check all the new changes directly, but I'd rather use a more elegant solution!

    Lorenzo

    Depending on how you are setting up the "custom" chart you are using, couldn't you just use an event to save settings rather than waiting for the user to click OK?
  • edited 1:17AM
    Aleric wrote: »
    Aleric wrote: »
    I had to develop a new chart object for use within fastreport because for my needs the standard teeChart was not sufficient.
    Since the configuration dialog of this object is rather complex, because the object has many properties, I have the problem that the result of the new settings will manifest only after closing the configuration window.
    I would like to know if there is a way that allows me to directly assign the changes made in the setup window without having to confirm with the OK button, the same way of working of the teeChart's configuration dialog when using it on a form of Delphi!
    I also thought of bringing in the dialog box a copy of the chart itself so to check all the new changes directly, but I'd rather use a more elegant solution!

    Lorenzo

    Depending on how you are setting up the "custom" chart you are using, couldn't you just use an event to save settings rather than waiting for the user to click OK?

    I've tried to refresh from inside the modal window the properties for the chart placed on fastreport's page, but without success, it seems that as long as you do not confirm the exit from the dialog box, the chart is not refreshed!
    To configure the chart I use an editor derived from TfrxViewEditor, and the allocation of new properties is via the Execute method!

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.