Submenu on Ribbon

Support forum for ARG-Software Design Lab. Command Bars Library []
Post Reply
Posts: 2
Joined: Fri Jul 08, 2011 9:45 am

Submenu on Ribbon

Post by KoenP »

The MSOffice Ribbon has a special submenu UI. Any change you are implenting this in _argcommandbarsbase.vcx in the near future?
SCREENDUMP(4).png (89.87 KiB) Viewed 5267 times
ARG-Software Design Lab.
Posts: 36
Joined: Sat Nov 14, 2009 5:14 pm

Re: Submenu on Ribbon

Post by AlexG »

Set the ContextColor and ContextCaption properties of the RibbonTab.
For example:

Code: Select all

ThisForm.Ribbon.TabEdit.ContextColor = 2
ThisForm.Ribbon.TabEdit.ContextCaption = "TX Editor"
Use one of the following constants for the ContextColor value:

#define _RibbonTab_ContextColor_None 0
#define _RibbonTab_ContextColor_Blue 1
#define _RibbonTab_ContextColor_Yellow 2
#define _RibbonTab_ContextColor_Green 3
#define _RibbonTab_ContextColor_Red 4
#define _RibbonTab_ContextColor_Purple 5
#define _RibbonTab_ContextColor_Cyan 6
#define _RibbonTab_ContextColor_Orange 7
With best regards,

Alex Grigorjev
(ARG-Software Design Lab.)
Post Reply