Sunday, January 2, 2011

CommandEventAttribute class of LinsUI Layout Manager 2.1

This class works together with CommandIDAttribute to associate a function to a command.
Examples
using LinsUI;

// when system is on idle, this event will be fired, and
// user can use this to update the user interface for the Color dropdown
[CommandIDAttribute(LinsResource.m_nColorsDropDownID),
 CommandEventAttribute(CUSTOM_TI_EVENT.UPDATE_COMMAND_UI)]
public void OnUpdateUIColorDropDown(object sender, UpdateUIEventArgs ev)
{
ev.Enabled = true;

No comments:

Post a Comment