RobNorthcott
Programmer
I'm generating a TRibbon-based menu at runtime in Delphi 2010. It needs to be created in code at runtime because the menu can be completely different depending on which user logs in (menus are user-defined).
It's working nicely apart from the fact that I can't write to the CommandProperties of a TActionClientItem at runtime. It's allowing me to set the whole property by assigning it from an existing button, but not the parts of the property directly (I need to set CommandProperties.ButtonStyle and CommandProperties.ButtonSize). Even the code editor at design time claims those values are not visible, even though they can be seen and set through the object inspector.
Does anybody know why these properties are "invisible" to code, or how to set them without needing a dummy button to assign settings from?
Rob
It's working nicely apart from the fact that I can't write to the CommandProperties of a TActionClientItem at runtime. It's allowing me to set the whole property by assigning it from an existing button, but not the parts of the property directly (I need to set CommandProperties.ButtonStyle and CommandProperties.ButtonSize). Even the code editor at design time claims those values are not visible, even though they can be seen and set through the object inspector.
Does anybody know why these properties are "invisible" to code, or how to set them without needing a dummy button to assign settings from?
Rob