I have a component that uses has a TFont property. This property is contained in a TTextDisplay (inherited from TPeristent) class which is a property of the larger TSimGaugeDevice (inherited from TGraphicControl) class.
The problem stems when I change font properties. In one instance it works fine, in another it causes all sorts of errors.
If I click on the "+" symbol next to the TFont property, all of the TFont properties are displayed in the Object Inspector. It appears that this works flawlessly...that is changing font properties *on* the Object Inspector.
Now...if I click on the "..." that brings up the TFont dialogue box and try to change anything here...well, as soon as I click OK on the dialogue box, nothing happens to the component (the font doesn't get altered like in the method above). As soon as I click on the component, all sorts of strange errors appear...a lot of "Access violation at address" and a few "Canvas does not allow drawing" and sometimes an "External exception". To Delphi's credit, these do not crash the system...but it does not allow me to save anything, since on exiting Delphi all of the errors show up once again before Delphi finally closes.
I would like to post code...unfortunately the classes are quite large and I think it would take quite awhile to
wade through them.
If you have ideas/suggestions...please post them as COMMENTS only. If one of them works, I'll invite that person to again post as an ANSWER and I grade.
The reason I ask for COMMENTS only is because some experts ignore questions awaiting answers. Any answers will be immediately rejected until I've tested your suggestion.
By the way...I can be trusted to award you your points quickly and with a high grade.