Ticket B291
Visible to All Users

Creating my own cxGrid Column inplace editor

created 19 years ago

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.

Answers approved by DevExpress Support

created 19 years ago (modified 11 years ago)

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

    Comments (2)

      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

      DevExpress Support Team 19 years ago

        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

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.