Home Forums WinForms controls Xceed Grid for WinForms Text decorations

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #17187 |

    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 

    Imported from legacy forums. Posted by Marie4 (had 1892 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi,

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

    Marie 

    Imported from legacy forums. Posted by Marie4 (had 908 views)

    User (Old forums)
    Member
    Post count: 23064

    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!

    Imported from legacy forums. Posted by Marie4 (had 858 views)

    User (Old forums)
    Member
    Post count: 23064

    Hello

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

    Thanks!

     

    Regards,

    Marie 

    Imported from legacy forums. Posted by Marie4 (had 350 views)

    User (Old forums)
    Member
    Post count: 23064

    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)

     

    Imported from legacy forums. Posted by Ghislain (had 578 views)

    User (Old forums)
    Member
    Post count: 23064

     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 

    Imported from legacy forums. Posted by Marie4 (had 1222 views)

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.