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.

Gallery and Custom control

Thread ID:

Created:

Updated:

Platform:

Replies:

69920 Nov 17,2007 05:55 AM Mar 11,2008 10:51 PM Windows Forms 3
loading
Tags: Tools
Christian Lützenkirchen
Asked On November 17, 2007 05:55 AM

Hi,

I am using Office 2007 Ribbons. I want to integrate a treeview with a hierchical structure of reports into the ribbon. In your RibonControlAdv Demo you show the integration of custom controls into the ribbon. But sometimes the treeview consists of 30 rows so you have to scroll a lot. The ToolStripGallery has this nice feature "compact scroller" where you can optionally open a popup.
Is it possible to use a custom control in the gallery?
Sure, I could use a dropdown button with a popup window but a compact scroller would be better. Sometimes the tree is empty, mostly it consists only of one or two items and you always have to open the dropdown!

Do you have any ideas?

Best Regards,
Christian


Bhuvaneswari P [Syncfusion]
Replied On November 20, 2007 06:24 AM

Hi Christian,

Thank you for your interest in Syncfusion products.

1. Is it possible to use a custom control in the gallery?

It is not possible to add the custom control in the gallery. Mainly it is to add the image collection. You can use the ToolStripEx to add the custom control.

Please refer the below code snippet:
ToolStripControlHost host1 = new ToolStripControlHost(this.treeViewAdv1);
this.toolStripEx1.Items.Add(host1);

You can find the sample from the sample browser
\\Syncfusion\EssentialStudio\5.2.0.25\Windows\Tools.Windows\Samples\2.0\Office2007 Controls\RibbonControlAdvDemo

2. I could use a dropdown button with a popup window but a compact stroller would be better

If the control size is bigger than the ToolStripEx size, then the dropdown button will be shown to display the control. If you don't want this, you can make the control size as ToolstripEx size. Now it will not show the dropdown button, it will show the control in the toolStripEx area.

Please download the sample from the sample below link:
http://websamples.syncfusion.com/samples/Tools.Windows/F69920/main.htm

Please let me know if you have any other queries.

Best Regards,
Bhuvana



Christian Lützenkirchen
Replied On November 20, 2007 07:48 AM

Hi Bhuvana,

thank you for your answers. I'll open a Direct Track for a feature request.

Best Regards,
Christian


Administrator [Syncfusion]
Replied On March 11, 2008 10:51 PM

Hi Christian ,

Thanks for the update.

Best Regards,
Bhuvana


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.

;