VCL Frames inserted into TRichViewEdit
Posted: Wed Nov 27, 2019 10:42 pm
Hi,
I am attempting to use the functionality of inserting Delphi controls into the TRichViewEdit, however, I'm running into a slight issue. I can insert/add the controls fine but they do not copy&paste. If I'm correct I need to use RegisterClasses() and register all the required classes to make this work, which I believe I am doing.
Unfortunately, it's still not working. The control I'm inserting is my own inherited TFrame which contains various standard controls (TPanel) and DevExpress controls (TcxComboBox, TcxImage, TcxPopupEdit). When the frame is an empty TFrame containing no controls it copies & pastes just fine throughout the editor, however, as soon as I add any control (even basic controls such as TLabel, TButton, ...) this functionality stops working.
If I create my own control inheriting directly from TWinControl the copy&paste functionality works fine (even for the DevExpress controls), so I guess my question is why doesn't this work for my TFrame inherited control? Any suggestions or thoughts would be much appreciated as I'd really like to be able to use TFrame for this.
Thanks, .
I am attempting to use the functionality of inserting Delphi controls into the TRichViewEdit, however, I'm running into a slight issue. I can insert/add the controls fine but they do not copy&paste. If I'm correct I need to use RegisterClasses() and register all the required classes to make this work, which I believe I am doing.
Unfortunately, it's still not working. The control I'm inserting is my own inherited TFrame which contains various standard controls (TPanel) and DevExpress controls (TcxComboBox, TcxImage, TcxPopupEdit). When the frame is an empty TFrame containing no controls it copies & pastes just fine throughout the editor, however, as soon as I add any control (even basic controls such as TLabel, TButton, ...) this functionality stops working.
If I create my own control inheriting directly from TWinControl the copy&paste functionality works fine (even for the DevExpress controls), so I guess my question is why doesn't this work for my TFrame inherited control? Any suggestions or thoughts would be much appreciated as I'd really like to be able to use TFrame for this.
Thanks, .