I'd like to create my own inplace editor specifically for richedit controls, so the user sees the various formatting, font, and alignment buttons when they enter the field. Essentially a mini-RTF editor. But for now, I am happy with an example that demonstrates how I go about doing this. TcxButtonEditProperties seems to be a good starting place as an example, as it embedds other controls via the Buttons property (TcxEditButtons). Does DevExpress have help somewhere, or an example of how to create and then register the classes the Delphi IDE? I can't find help anywhere explaining which classes must be created, and what method need to be overriden, etc to accomplish this.
Creating my own cxGrid Column inplace editor
Answers approved by DevExpress Support
Hi Peter,
I have attached a custom document which was specifically created by our team and which describes how to create a custom ExpressEditor and properly register it. Hopefully, it will be of some help.
BTW, why do you not wish to use the TcxRichEdit which is a part of the ExpressEditors Library and which can be used as an in-place editor in the ExpressQuantumGrid?
Thanks,
Plato
I shall look at your document shortly. But the reason I need to create my own is that the standard TcxRichEditProperties editor simply renders the RTF, but has no capability (as far as I can see) to modify the RTF formatting, such as colours, font sizes, bullets, etc. Essentially what my client wants is a baby editor (like a scaled down version of MS Word) directly inside the editing region that shows up when that cellItem receives focus, From some other KB document I found out how you can get the editBounds of the inplace edit, and then essnetially dynamcially create and lay on it ontop of your edit. this is not exactly the purest approach to solve the problem, but probably good enough and I know I can do it technically without bothering you guys 10 times a day. But if you know a better way, or these capabilities are built in, and I simply have not found them yet - then by all means, please clue me in! :)
-randall
Randall,
The TcxRichEdit uses the standard TRichEdit as an inner edit and thus you can format values in the editor just as you need. I have attached a sample project which should show the ability of the editor for you.
Thanks,
Plato