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.
Unfortunately, activation email could not send to your email. Please try again.

Funky Text Spacing

Thread ID:

Created:

Updated:

Platform:

Replies:

42345 Mar 27,2006 11:17 AM Mar 29,2006 10:09 AM Windows Forms 3
loading
Tags: GridControl
Matthew Schumaker
Asked On March 27, 2006 11:17 AM

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 28, 2006 11:35 PM

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 09:46 AM

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

Administrator [Syncfusion]
Replied On March 29, 2006 10:09 AM

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.

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.

;