Troubles with Delphi controls
Posted: Mon Jul 02, 2007 9:54 pm
Dear folks and Sergey personally,
I am not an advanced coder, so I probably do something wrong...
The problem, according to the forum, is not new: why Delphi controls are not rendered correctly after being saved to and then loading back from RVF file. Or, they are not rendered at all. I use RegisterClass, but many controls contain classes that can't be registered (e.g. TJvPopupCalendar or similar classes, where it is taken from?). Sometimes the message appears like "Control <control> has no parent window".
RV Version is 1.9.24 (trial, may be that is the matter?)
In RVF options the "save controls" is checked.
This concerns not all Delphi controls but, to my observations, those having drop-down boxes. Those are components from EhLib, ELPack, Jedi VCL etc., especially DB-aware components. I could not resolve this problem with all my efforts.
Moreover, after I try to create controls on-the-fly (with OnControlNeeded event) the first problem is resolved, but the formatting of RichViewEdit is broken after loading RVF-file: the controls are misplaced according to baseline. Interesting, the formatting is restored after starting typing text somewhere in the document...
Besides, where to store published properties (e.g. DataSource etc.) with such approach?
I don't know what to think and how to struggle this problems... The application I want to make requires precise formatting of controls among the surrounding text.
Please answer, waiting impatiently. On need, can give he examples of my code.
Sincerely, Eugene
I am not an advanced coder, so I probably do something wrong...
The problem, according to the forum, is not new: why Delphi controls are not rendered correctly after being saved to and then loading back from RVF file. Or, they are not rendered at all. I use RegisterClass, but many controls contain classes that can't be registered (e.g. TJvPopupCalendar or similar classes, where it is taken from?). Sometimes the message appears like "Control <control> has no parent window".
RV Version is 1.9.24 (trial, may be that is the matter?)
In RVF options the "save controls" is checked.
This concerns not all Delphi controls but, to my observations, those having drop-down boxes. Those are components from EhLib, ELPack, Jedi VCL etc., especially DB-aware components. I could not resolve this problem with all my efforts.
Moreover, after I try to create controls on-the-fly (with OnControlNeeded event) the first problem is resolved, but the formatting of RichViewEdit is broken after loading RVF-file: the controls are misplaced according to baseline. Interesting, the formatting is restored after starting typing text somewhere in the document...
Besides, where to store published properties (e.g. DataSource etc.) with such approach?
I don't know what to think and how to struggle this problems... The application I want to make requires precise formatting of controls among the surrounding text.
Please answer, waiting impatiently. On need, can give he examples of my code.
Sincerely, Eugene