AdxRibbonComboBox Get Selected Item

Add-in Express™ Support Service
That's what is more important than anything else

AdxRibbonComboBox Get Selected Item
How do I get the Combobox.Itemindex ? 
Kuti Gabor




Posts: 2
Joined: 2023-11-23
Hello,
How can I get the index of the selected item in the RibbonCombobox.
I want to get it in an Onchange event.
In a previous article you mentioned the use of ItemIndex.

nItemIndex:=((adxRibbonTab1.Controls[1].AsribbonGroup).controls[0].AsRibbonComboBox).?????

Best regards
Gabor
Posted 23 Nov, 2023 01:09:36 Top
Andrei Smolin


Add-in Express team


Posts: 18782
Joined: 2006-05-11
Hello Gabor,

No way. There's no SelectedItemIndex property on that control; that's by design from the Ribbon API by Microsoft.

Regards from Poland (GMT+1),

Andrei Smolin
Add-in Express Team Leader
Posted 24 Nov, 2023 11:42:48 Top
Halsystem




Posts: 2
Joined: 2023-11-23
Hello Andrei

Thanks, I have solved the procedure.

My other development problems
1.I would like to request a sample program to expand Outlook Categories items at runtime.
The example in the article https://www.add-in-express.com/forum/read.php?FID=1&TID=14343 does not recognize _Categories and _Category

2.I would like to read and save the selected appointment data

Regards

Gabor
Posted 27 Nov, 2023 12:21:07 Top