I have a PopUpMenu on an UltraToolBar with ButtonTool "A" and ButtonTool "B". After the user click either ButtonTool I want the PopUpMenu to have the Text and Image of the clicked ButtonTool.
Can that we set with a property?
Or do I need to write code?
Hello,
Are you able to retrieve the text and image of the clicked button tool using the example provided?
Let me know if this code works for you.
Sincerely,Duane HoytDeveloper Support EngineerInfragisticshttp://es.infragistics.com/support
The Example is for a UltraWebToolBar, unfortunately I should have specified that we are using an UltraWinToolBar and C#.
Currently I am using this code to change the text and image on the PopupMenuTool. Tool 6 is the PopUpMenu and 7 + 8 are buttons on the PopUpMenu.
// 08/09/10 rwb : add Consolidated/Detail and Consolidated/Detail display private void ultraToolbarsManager_ADE_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e) { if (e.Tool.Key == "Consolidated") { ultraToolbarsManager_ADE.Tools[6].SharedProps.Caption = ultraToolbarsManager_ADE.Tools[7].SharedProps.Caption; ultraToolbarsManager_ADE.Tools[6].SharedProps.AppearancesSmall.AppearanceOnToolbar.Image = ultraToolbarsManager_ADE.Tools[7].SharedProps.AppearancesSmall.AppearanceOnToolbar.Image; ultraToolbarsManager_ADE.Tools[6].SharedProps.AppearancesSmall.AppearanceOnToolbar.Image = ultraToolbarsManager_ADE.Tools[7].SharedProps.AppearancesSmall.AppearanceOnToolbar.Image; } if (e.Tool.Key == "Detail") { ultraToolbarsManager_ADE.Tools[6].SharedProps.Caption = ultraToolbarsManager_ADE.Tools[8].SharedProps.Caption; ultraToolbarsManager_ADE.Tools[6].SharedProps.AppearancesSmall.AppearanceOnToolbar.Image = ultraToolbarsManager_ADE.Tools[8].SharedProps.AppearancesSmall.AppearanceOnToolbar.Image; } _presenter.OnToolBar_Click(sender, e); }
It seemed to me to be something commonly done so there might be a property for this action.
Again thanks for the update and let me know if I am overlooking something. There are a lot of properties on this control.
The code you've got there looks good to me. Let me know if it works.
The code works fine. I was looking for a property setting to do the same thing.
yes
Has your question been answered?
Currently, there is no property to do what you want.