Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set TActionClientItem.CommandProperties at runtime

Status
Not open for further replies.

RobNorthcott

Programmer
Feb 11, 2002
30
GB
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
 
Forget it - we've just noticed the license warning about having to conform to Microsoft's narrow-minded ideas about how we can use the ribbon control interface. How typically petty. Won't be using that then :/

Rob
 
DevExpress has their own implementation of the ribbon that might be of use. I tried Embarcadero's version once and had the whole bar corrupt as I was trying to sort out where the buttons would be placed and lost a day of work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top