Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • In the tableview customdrawcell event, I have code like this:

                                      Acanvas.Brush.Color := MyColor;
                                      Acanvas.Font := MyFont;
                                      ACanvas.FillRect(aviewinfo.Bounds);
                                      ACanvas.DrawText(MyText,aviewinfo.TextAreaBounds, cxAlignLeft)

                                    In this way, the tableview CellEndEllipsis property doesn't work (because I override the customdrawcellevent).
                                    How can I do for obtain the same result as do CellEndEllipsis property..?

                                    Thanks,
                                    Steafano

                                0

                                Hello Steafano,

                                You can use the onGetContentStyle event to assign your style with the necessary color and font.
                                And the <Column>.onGetDisplayText event to assign your text.
                                 
                                The DrawText Function has many capabilities, including the addition of ellipses.
                                For more information, please see the Windows GDI DrawText ( http://msdn.microsoft.com/en-us/library/ms533909.aspx)

                                Thanks,
                                Vlad

                                0

                                I do the following for solve the issue (add cxShowEndEllipsis parameter):
                                ACanvas.DrawText(myText,aviewinfo.TextAreaBounds, cxWordBreak or cxShowEndEllipsis)

                                Thanks,
                                Stefano.

                                0

                                Hello Steafano,

                                Thank you for informing us that the problem is resolved. I am glad that our assistance was helpful.

                                Thanks,
                                Vlad

                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Your Privacy - Legal Statements

                                Copyright © 1998-2013 Developer Express Inc.
                                ALL RIGHTS RESERVED
                                All trademarks or registered trademarks
                                are property of their respective owners