Sunday, January 2, 2011

CommandImageAndTextRelationAttribute class of LinsUI Layout Manager 2.1

Specifies the position of the text and image relative to each other on the item.
Examples
using LinsUI;

public static class LinsResource
{
[CommandGroupNameAttribute("Main"), // The Category name
 // Command name
 CommandNameAttribute("Import"),
 // Tell the application, it is a menu item 
 CommandTypeAttribute(TSITEM_TYPEID.MENUITEM),
 // The Menu item Icon
 CommandImageAttribute("import2.ico"),    
 // Menu item display style                                      
 CommandAppearanceAttribute(ToolStripItemDisplayStyle.ImageAndText),
 // The Text and Icon relation
 CommandImageAndTextRelationAttribute(TextImageRelation.TextBeforeImage)],
public const long m_nColorID =  FlexConstants.m_nUserDefinedControlStartID + 1;

No comments:

Post a Comment