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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Icon in Stacked GroupBar header

Thread ID:

Created:

Updated:

Platform:

Replies:

51184 Oct 30,2006 11:08 PM UTC Nov 1,2006 10:43 PM UTC WinForms 3
loading
Tags: Tools
Andy Johns
Asked On October 30, 2006 11:08 PM UTC

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 31, 2006 01:30 AM UTC

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 09:59 PM UTC

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 10:43 PM UTC

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.

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

;