We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Funky Text Spacing

Thread ID:

Created:

Updated:

Platform:

Replies:

42345 Mar 27,2006 04:17 PM UTC Mar 29,2006 03:09 PM UTC WinForms 3
loading
Tags: GridControl
Matthew Schumaker
Asked On March 27, 2006 04:17 PM UTC

I''m using 3.2.1.0 and I''m seeing some weird text spacing issues. In the attached BMP, you can see that on the fourth line, the spacing between ''fa'' changes. This is rather strange. I don''t see how I can fix this. Has anyone else seen this? -Matt

FunkyText.zip

Administrator [Syncfusion]
Replied On March 29, 2006 04:35 AM UTC

Hi Matthew, The actual editors like the textbox and richtextbox rely on the win32 GDI drawing code to draw the editing text. But the static draw code uses the .NET GDI+ to draw the strings, hence the weird behavior. Try the below work around to see if that helps. this.gridControl1.DrawCellDisplayText += new GridDrawCellDisplayTextEventHandler(gridControl1_DrawCellDisplayText); private void gridControl1_DrawCellDisplayText(object sender, GridDrawCellDisplayTextEventArgs e) { Rectangle r = e.TextRectangle; r.Offset(2, 0); GridGdiPaint.Instance.DrawText(e.Graphics, e.DisplayText, r, e.Style); e.Cancel = true; } Regards, Calvin.

Matthew Schumaker
Replied On March 29, 2006 02:46 PM UTC

I''m using a GridGroupingControl and It doesn''t seem to have that event

Administrator [Syncfusion]
Replied On March 29, 2006 03:09 PM UTC

Hi Matthew, In the GridGroupingControl the DrawCellDisplayText event can be found under the gridGroupingControl1.TableControl. Below is a code snippet. this.gridGroupingControl1.TableControl.DrawCellDisplayText += new GridDrawCellDisplayTextEventHandler(TableControl_DrawCellDisplayText); Regards, Calvin.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;