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.

Icon in Stacked GroupBar header

Thread ID:

Created:

Updated:

Platform:

Replies:

51184 Oct 30,2006 06:08 PM Nov 1,2006 05:43 PM Windows Forms 3
loading
Tags: Tools
Andy Johns
Asked On October 30, 2006 06:08 PM

I've got a stacked GroupBar control with icons in the GroupBarItems. I would like the header to show the corresponding icon when the Item is selected, not just the text. How can I achieve this?
Thanks
-Andy

Purusothaman R [Syncfusion]
Replied On October 30, 2006 08:30 PM

Hi Andy,

Currently it;s not possible to have an Icon in the GroupBar Header. Because by the design of GroupBar, the Header is not a Control. Its just a painted area.

I will forward this to the development team to implement your request as an feature.

So as an work around, place a PictureBox over the desired area of the GroupBar header. Set the SizeMode to "StretchImage" and bring it to the Top over the Groupbar. Now you can assign the Icon of the selected GroupBarItem to the PictureBox in the "GroupBarItemSelected" event.

Thanks for using Syncfusion Products.

Thanks,
Purusothaman.R

Andy Johns
Replied On November 1, 2006 04:59 PM

Adding it as a built-in feature would be great.

I've resolved the issue for now by subclassing the GroupBar control, and overriding the DrawStackedGroupBar method to add in a bit of code to draw the selected GroupBarItem's icon before the header text.

Thanks
-Andy

Mano J [Syncfusion]
Replied On November 1, 2006 05:43 PM

Hi Andy,

Thanks for the update. We can make it as a feature in the future releases.

Regards,
Mano

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.

;