Gallery and Custom control
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
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
SIGN IN To post a reply.
3 Replies
BP
Bhuvaneswari P
Syncfusion Team
November 20, 2007 11:24 AM UTC
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
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
CL
Christian Lützenkirchen
November 20, 2007 12:48 PM UTC
Hi Bhuvana,
thank you for your answers. I'll open a Direct Track for a feature request.
Best Regards,
Christian
thank you for your answers. I'll open a Direct Track for a feature request.
Best Regards,
Christian
AD
Administrator
Syncfusion Team
March 12, 2008 02:51 AM UTC
Hi Christian ,
Thanks for the update.
Best Regards,
Bhuvana
Thanks for the update.
Best Regards,
Bhuvana
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
-
CL Christian Lützenkirchen
- Nov 17, 2007 10:55 AM UTC
- Mar 12, 2008 02:51 AM UTC