Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » About __EXT_RIBBON_MAKE_RULE_ARRAY_ENTRY Collapse All
Subject Author Date
tarou iiyama Oct 19, 2006 - 7:46 PM

Hello

__EXT_RIBBON_MAKE_RULE_ARRAY_ENTRY is used with a RibbonBar sample.

What will this set?
Please teach usage.

Question1:

CArray < DWORD, DWORD > & arrRule_FontNameAndSize =
pRibbonNode_FontNameAndSize->RibbonILE_RuleArrayGet();
arrRule_FontNameAndSize.RemoveAll();
arrRule_FontNameAndSize.Add(
__EXT_RIBBON_MAKE_RULE_ARRAY_ENTRY(
__EXT_RIBBON_ILE_MAX,
__EXT_RIBBON_ILV_SIMPLE_SMALL,
false
)
);
arrRule_FontNameAndSize.Add(
__EXT_RIBBON_MAKE_RULE_ARRAY_ENTRY(
__EXT_RIBBON_ILE_MIN, // __EXT_RIBBON_ILE_MAX - 4,
__EXT_RIBBON_ILV_SIMPLE_SMALL,
true
)
);

Question2:

arrRule_QuickStyles.InsertAt(
0,
__EXT_RIBBON_MAKE_RULE_ARRAY_ENTRY(
( __EXT_RIBBON_ILE_MIN + 3 + nQuickIndex ),
( ( 76 * ( nQuickIndex + 2 ) ) + 16 ),
false
)
);

Thank you.

Technical Support Oct 25, 2006 - 8:17 AM

We are really sorry for the delay with this reply. We would like to ask you to post your questions to the Tech Support forum because it seems you have a valid tech support subscription. If your account status does not allow you to do this, please contact us via e-mail at support@prof-uis.com so we can upgrade your account.

We answered a very similar question in this thread.

As for your second question, it relates to the ribbon gallery, which is a ribbon button that can have the visual info levels greater than 2 (As you know the regular ribbon button can have the visual levels in the range of 0 to 2). Any value greater than 2 means the ribbon gallery will not be collapsed into the button (button state) and the value in this case specifies the width of the ribbon gallery in pixels. Only the Quick Styles ribbon gallery in the RibbonBar and RibbonPage samples is constructed to have this behavior.


tarou iiyama Oct 23, 2006 - 6:10 PM

Hello

I do not understand how to use and am troubled.

Please reply it about RibbonBar Sample.