iRibbon dropDown Control

hatman

Well-known Member
Joined
Apr 8, 2005
Messages
2,664
How does one clear the selection of a custom dropDown control in teh ribbon? Or alternatively, how does one fire the onAction procedure when the user selects the same member of teh list again?

Has anyone else noticed this? When using a drpDown control in teh ribbon, the user selects a member of te list, which fires the onAction procedure. As expected. Teh user selects a different member of teh list, and again, it behaves as expected. But when the user expands teh list, and re-select the same member as is currently selected, teh list collapses, and the onAction procedure is never called. I'm not even sure how to cludge this other than telling te huser to select something else, then click what he wants...
 
Rich (BB code):

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
xmlns:Y="HSNamespace"
******="Callback_LabStatusRibbon_******">
<ribbon>
<tabs>
<tab idQ="Y:customTab_HS"label="Hamilton Tools"insertAfterMso="TabView">
<group id="customHS_Lab_Toolbar"label="Lab Status Monitors">
<box id="Butt_Group"
boxStyle="vertical">
<labelControl id="Location_Label"
label="Select Location:"/>
<dropDown id="Location_Selection"
visible="true"
onAction="Callback_Location_Selection"
getItemID="Callback_Get_Item_ID"
getItemCount="Callback_Get_Item_Count"
getItemLabel="Callback_Get_Item_Label"
getSelectedItemID="Callback_Get_Sel_Itm_Area"/>
 
(rest of XML here)

I'm using the standard custom UI editor, and when I hit the generate callbacks button, an entry doesn't even show up in the list for this callback.

 
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
The editor seems to ignore it when generating callbacks for some reason but otherwise it should work. What does the callback declaration look like?
 
Upvote 0

Forum statistics

Threads
1,225,156
Messages
6,183,231
Members
453,152
Latest member
ChrisMd

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top