Well what's available to the object depends on what it's declared as (CommandBarButton, CommandBarControl, CommandBarPopup, etc).
Can you post the code?