Sunday, January 2, 2011

CommandGroupNameAttribute class of LinsUI Layout Manager 2.1

Specifies which category the command belongs to.
The following code specifies that the command “Color” belongs to the “Shapes and Pictures” category.
Examples
using LinsUI;

public static class LinsResource
{
[CommandGroupNameAttribute("Shapes and Pictures"), // The Category name
 // Command name
 CommandNameAttribute("Color"),
 // Tell the application, it is a combobox 
 CommandTypeAttribute(TSITEM_TYPEID.COMBOBOX)]  
public const long m_nColorID =  FlexConstants.m_nUserDefinedControlStartID + 1;

No comments:

Post a Comment