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

Format Toolbar

Thread ID:





42510 Mar 30,2006 10:44 AM UTC Apr 9,2006 11:11 PM UTC WinForms 7
Tags: Tools
Terence Rossow
Asked On March 30, 2006 10:44 AM UTC

Hi, I am attempting to create a reusable formatting toolbar component, using the Syncfusion XPMenus, for a number of applications. The toolbar will take a GridStyleInfo and change it based on what the user chooses in the toolbar, and the items shown will be set based on flags. The idea I had was to create a component that, when given a BarManager, creates a toolbar and items based on the properties of the component. I have this working now. However, I have a couple of issues. When in design mode, if I set the BarManager to null, the items and toolbars are not removed as I have coded them to. Also, during compilation and design time, I get an error window from Visual Studio .NET along the lines of "Syncfusion.Windows.Forms.Tools.XPMenus.BarManager" is not marked as serializable. Thirdly, I am not sure how to remove the bar items and such when the component is deleted from the form in design time. Finally, is there any way to stop the BarManager "Customise Bar Items" dialog from showing the items created by my component? Thanks, TERRY ROSSOW

Mano J [Syncfusion]
Replied On March 31, 2006 12:52 PM UTC

Hi Terry, I am currently working on this and will provide an update within a day. Sorry for this delay. Regards, Mano

Mano J [Syncfusion]
Replied On April 3, 2006 11:22 AM UTC

Hi Terry, Sorry for this delay in getting back to you. Unfortunately, we could not provide a solution without looking into the code. Could it be possible for you to post your code? If it is confidential, you can create a Direct-Trac incident and post your code there, mentioning this forum ID in the subject line. Thanks for your patience and understanding on this issue. Regards, Mano

Terence Rossow
Replied On April 4, 2006 11:38 PM UTC

Thank you for your time, however I have solved my issues by removing design-time visibility of the toolbar itself. I do have one other question - in one of the winforms grid samples there is a property grid that allows you to choose a pattern of the cell from a combo box. Each item has an image of the pattern. Would it be possible to retrieve those images from somewhere? Cheers, TERRY ROSSOW

Administrator [Syncfusion]
Replied On April 6, 2006 05:59 AM UTC

Hi Terry, Here is a sample that explains how images can be added as items in a GridListControl cell type. Similarly, you can use image without using a combobox. Sample : ImageInComboBox Thanks for being patience. Best regards, Madhan

Terence Rossow
Replied On April 6, 2006 07:15 AM UTC

Hi Madhan, What I actually require is the icons out of the combo box in the property grid that shows the available patterns for cells. What I am trying to do is create a formatting toolbar with a drop down that contains all of the cell patterns - so I need those pattern images for the drop down. I was hoping that you would be able to send them to me, or point me at the dll which contains them. Thanks, TERRY ROSSOW

Administrator [Syncfusion]
Replied On April 6, 2006 03:46 PM UTC

Hi Terry, The patterns are not images or icons. You can draw them using the BrushInfo tool. Namespace : Syncfusion.Drawing Assembly : Syncfusion.Shared.Base (in Syncfusion.Shared.Base.dll) Broswer Sample : CellStyles( \\windows\Grid.Windows\Samples\Quick Start\CellStyles ) Best regards, Madhan

Terence Rossow
Replied On April 9, 2006 11:11 PM UTC

Thanks. Exactly what I was after.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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