View Single Post
 
Old 03-19-2023, 03:24 AM
Italophile Italophile is offline Windows 11 Office 2021
Expert
 
Join Date: Mar 2022
Posts: 554
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

The ribbon is an application object, not a document object.

Your code needs to handle the DocumentChange event so that you can refresh the ribbon when the active document changes.

Your toggle buttons also need to have GetPressed callbacks so that the button reflects the current state of the property that is being toggled.
Reply With Quote