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.
Syncfusion Feedback

Problem drawing GroupBarItems

Thread ID:

Created:

Updated:

Platform:

Replies:

73646 May 14,2008 12:20 AM UTC May 14,2008 08:41 PM UTC Windows Forms 3
loading
Tags: Tools
Administrator [Syncfusion]
Asked On May 14, 2008 12:20 AM UTC

We are getting a problem whe reducing the size of the window in a GroupBar. The GroupBarItems are not redrawing correctly. We are drawing the background using a LinearGradientBrush.

System.Drawing.Drawing2D.LinearGradientBrush bUnselected = new System.Drawing.Drawing2D.LinearGradientBrush(new Rectangle(0, 0, 200, BUTTON_HEIGHT), Color.FromArgb(34, 33, 36), Color.FromArgb(37, 37, 39), System.Drawing.Drawing2D.LinearGradientMode.Vertical);

System.Drawing.Drawing2D.LinearGradientBrush bselected = new System.Drawing.Drawing2D.LinearGradientBrush(new Rectangle(0, 0, 200, BUTTON_HEIGHT), Color.FromArgb(60, 60, 60), Color.FromArgb(80, 80, 80), System.Drawing.Drawing2D.LinearGradientMode.Vertical);




Syncfusion draw error.zip

Administrator [Syncfusion]
Replied On May 14, 2008 12:22 AM UTC

p.s. we're using Syncfusion 4.1 (but have tried with SF 6.2 as well) and VS2005, .NET 2.0


Fathima Shalini P [Syncfusion]
Replied On May 14, 2008 12:45 PM UTC

Hi,

Thank you for your interest in Syncfusion Products.

I am afraid that I was not able to reproduce the issue mentioned here. Please refer the below

sample in the following link:

http://websamples.syncfusion.com/samples/Tools.Windows/F73646/main.htm

Please try the above sample and if the issue exists, please send us the steps to reproduce, so that I could work out in depth and provide you a better solution?

Please let me know if any concerns.

Regards,
Fathima


Gus Matheson
Replied On May 14, 2008 08:41 PM UTC

>Hi,

Thank you for your interest in Syncfusion Products.

I am afraid that I was not able to reproduce the issue mentioned here. Please refer the below

sample in the following link:

http://websamples.syncfusion.com/samples/Tools.Windows/F73646/main.htm

Please try the above sample and if the issue exists, please send us the steps to reproduce, so that I could work out in depth and provide you a better solution?

Please let me know if any concerns.

Regards,
Fathima



Hi,

Thanks for that, it has sorted out my problem.

There looks to be a bug in there still. What I was doing was when creating a GroupBarItem I assigned it a brush, this seems to cause the problem. When I tried your way (ProvideBackgroundBrush event) everything worked fine.

Thanks for the help.


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

;