Setting only the UI_PKEY_Increment property of the spinner ribbon control won't work RRS feed

  • Question

  • I'm trying to set the UI_PKEY_Increment property of a spinner ribbon control. This cannot be done with IUIFramework:SetUICommandProperty method according to the docs. Hence I try to do it through invalidation. I call IUIFramework:InvalidateUICommand with the UI_INVALIDATIONS_PROPERTY and UI_PKEY_Increment parameters. Unfortunately UICommandHandler:UpdateProperty never receives a call asking for the new value of UI_PKEY_Increment. When I use UI_INVALIDATIONS_ALLPROPERTIES, I receive an update call. Unfortunately all other properties initialized from the resource appear to be blanked by UI_INVALIDATIONS_ALLPROPERTIES. For example the label disappears after this call.

    Another thing driving me nuts is that IUIFramework:FlushPendingInvalidations does not work as documented.  For example if I'm invalidating the minValue property, I receive an update call for the enabled property...

    Wednesday, March 29, 2017 4:21 PM