Welcome to the Xceed Community | Help
Community Search  
More Search Options

Text decorations

Sort Posts: Previous Next
  •  07-15-2009, 8:58 AM Post no. 22611

    Text decorations

    Hi,

    I would like to know how to set text decorations on a cell's text?

    This is the MSDN "how to" page about text decorations: http://msdn.microsoft.com/en-us/library/ms752372.aspx . Is there something similar with Xceed grid? If not, how can I create an underline with specific settings?

    Thank you,

    Marie 

  •  07-17-2009, 7:52 AM Post no. 22679 in reply to 22611

    Re: Text decorations

    Hi,

    I decided to paint my underlines manually overriding the PaintForeground method.

    Marie 

  •  07-24-2009, 11:42 AM Post no. 22876 in reply to 22679

    Re: Text decorations

    Hi,

    I successfully painted the underline in my own class that overrides DataCell. However, I don't know how to do custom painting on a cell being edited. I have a class that overrides TextEditor and my own WinTextBox. 

    I tried many different tests, by example:

    - Overriding the paint method in my WinTextBox, but it doesn't do anything.
    - Overidding WinTextBox.PaintBorders but it doesn't get called at all
    - Using a custom TextBoxArea with custom painting.
    - Etc.

    Do you have any idea how I could this? My changes seem to be either not called, not taken into consideration or overridden somehow by Xceed code...

    Thank you!

  •  08-07-2009, 8:23 AM Post no. 23217 in reply to 22876

    Re: Text decorations

    Hello

    Does anyone know how to do custom painting on a cell being edited? Perhaps it is not possible?

    Thanks!

     

    Regards,

    Marie 

  •  08-11-2009, 11:20 AM Post no. 23289 in reply to 23217

    Re: Text decorations

    Hi Marie,

    Custom Painting is described in the Grid for .NET documentation.  You should be able to open the Custom Painting section by clicking "Run..." in the Start menu and typing in (copy-pasting is probably more convenient) :

    dexplore.exe ms-help://Xceed.Grid/Documentation/Custom_painting.html

    It is also available directly from our website here: http://doc.xceedsoft.com/products/XceedGrid/Custom_painting.html

     

    You will be able to find code examples in these sections:

    ms-help://Xceed.Grid/Documentation/Editors_CustomCalendar_C_htm.html  (locally, C#)

    http://doc.xceedsoft.com/products/XceedGrid/Editors_CustomCalendar_C_htm.html  (our website, C#)

    or

    ms-help://Xceed.Grid/Documentation/Editors_CustomCalendar_VB.NET.html (locally, VB.NET)

    http://doc.xceedsoft.com/products/XceedGrid/Editors_CustomCalendar_VB.NET.html   (our website, VB.NET)

     


    Ghislain
    Technical Support and software developer
    Xceed Software Inc.
    Knowledge Base : http://xceed.com/kb/
    Update Center : http://xceed.com/updates/
    Documentation Center : http://xceed.com/doc/
    For everything else, there is Google
  •  02-16-2010, 2:11 PM Post no. 25808 in reply to 23289

    Re: Text decorations

     Hi!

    I already tried that. It doesn't do what I need. My changes seems to be either not called, not taken into consideration or overridden somewhere in you Xceed code...

    Can I try something else?

    Thanks,

    Marie 

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.