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.
Syncfusion Feedback

How change BarItem text in customization dialog?

Thread ID:

Created:

Updated:

Platform:

Replies:

30428 Jun 17,2005 12:25 PM UTC Sep 28,2005 12:05 PM UTC Windows Forms 8
loading
Tags: Tools
Ivan Obraztsov
Asked On June 17, 2005 12:25 PM UTC

I have following menu structure: Draw |-> Rectangle |-> By &three point So last menu item is displayed in customize as “By &three point”, but it have to displayed as “Rectangle by three point”. How I can specify different text and display text for each BarItem?

Ivan Obraztsov
Replied On June 22, 2005 06:40 AM UTC

Moving up.

Administrator [Syncfusion]
Replied On June 22, 2005 10:34 PM UTC

Hi Ivan, Are you using the beta of VS .NET 2005? There has been a similar issue already reported in such a situation. Regards, Gregory Austin Syncfusion Inc.

Ivan Obraztsov
Replied On June 24, 2005 02:19 PM UTC

> Are you using the beta of VS .NET 2005? There has been a similar issue already reported in such a situation. No, I use VS 2003.

Ivan Obraztsov
Replied On June 28, 2005 10:13 AM UTC

Customize dialog I want to define more exactly my question. The BarItem have property "Text". This text is displayed in menu and in customize dialog. But there are situations than text in menu and in customize dialog have to be different. For example: Menu structure is: Draw __|-> Rectangle _____|-> By three points __|-> Circle _____|-> By three points So there are two different BarItems this same text. It''s normal for menu because they are in different submenus. But in customize dialog all items in category "Draw" are in the one list, so they must have different names. For example, "Rectangle by three points" and " Circle by three points".

Administrator [Syncfusion]
Replied On June 28, 2005 08:15 PM UTC

Hi Ivan, We provide a way to customize the customization dialog. This should allow you to display whatever you want when the user invokes customization. Please refer to the online documentation for MainFrameBarManager.CustomizationPanel. If you have any questions about it, please let me know. Regards, Gregory Austin Syncfusion Inc.

Administrator [Syncfusion]
Replied On September 27, 2005 01:52 PM UTC

> We provide a way to customize the customization dialog. This should allow you to display whatever you want when the user invokes customization. > > Please refer to the online documentation for MainFrameBarManager.CustomizationPanel. If you have any questions about it, please let me know. I inherit my own control from CustomizationPanel to change BarItem''s texts in commands grid. But my changes don''t apply. Grid always show standard BarItem text. This is my implementation: using System; using System.Diagnostics; using System.Windows.Forms; using Syncfusion.Windows.Forms.Grid; using Syncfusion.Windows.Forms.Tools.XPMenus; namespace zLocalizeTest { /// /// Summary description for CustPanel. /// public class CustPanel : CustomizationPanel { public CustPanel() { gridHostPanel.ControlAdded += new ControlEventHandler(gridHostPanel_ControlAdded); } private void gridHostPanel_ControlAdded(object sender, ControlEventArgs e) { MenuGridControlCustomizable ctrl = gridHostPanel.Controls[0] as MenuGridControlCustomizable; ctrl.UpdatingChanged += new EventHandler(ctrl_UpdatingChanged); } private void ctrl_UpdatingChanged(object sender, EventArgs e) { MenuGridControlCustomizable grid = sender as MenuGridControlCustomizable; if(grid == null) return; try { grid.UpdatingChanged -= new EventHandler(ctrl_UpdatingChanged); GridModel model = grid.Model; for(int row=1; row<=model.RowCount; row++) { GridStyleInfo info = model[row, 2]; if(info.CellValueType != typeof(string)) continue; info.CellValue = (string)info.CellValue + "aaa"; Debug.WriteLine(info.CellValue); } } catch(Exception ex) { Debug.WriteLine(ex); } finally { grid.UpdatingChanged += new EventHandler(ctrl_UpdatingChanged); } } } }

Ivan Obraztsov
Replied On September 27, 2005 01:54 PM UTC

Sorry, I forgot enter my name.

Administrator [Syncfusion]
Replied On September 28, 2005 12:05 PM UTC

Hi Ivan, This was a known issue Defect #418 - Changes performed through derived Customize dialog are not persisted that has been fixed in version 3.3. Please create a Direct-Trac incident if you are interested in receiving this version. We appreciate your cooperation. Regards, Ebenezer.P

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

;