Accepted Answer
3
The question owner accepted this as the best answer.
Peter Pang @Appeon
  1. Accepted Answer
Tuesday, 20 December 2022 02:29 AM UTC #Permalink

Hi Galina,

 

RibbonCategoryItem doesn't support keyboard shortcuts yet. We'll note this as an enhancement requirement.

Workaround:

Through an object that has shortcut property, such as small buttons, set visible to false and Shortcut to Ctrl+N. Then trigger the following code in the Clicked event to toggle between categories by pressing Ctrl+N.

RibbonCategoryItem     lrbb_categroyItem
Long         ll_Index, ll_Count, ll_index_next

ll_Count = rbb_1.GetCategoryCount ()
If ll_Count > 0 Then
         rbb_1.GetActiveCategory ( lrbb_categroyItem )
         ll_Index = rbb_1.GetCategoryIndex ( lrbb_categroyItem.itemhandle )
         If ll_Index < ll_Count Then
                   ll_index_next = ll_Index +1
         Else 
                   ll_index_next = 1
         End If
         rbb_1.SetActiveCategoryByIndex ( ll_index_next )
End If

 

 

Wish you all a merry Christmas & happy New Year! 

  

Best Regards,

Peter