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
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
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!