Links help documentation with the command. This help documentation must be a Rich-Text-Format (RTF) file, and it must be stored under the directory defined by FlexUISettings. DefaultHelpFilePath.
If user clicks at the icon on the tooltip, the system will pop up a dialog which will open the specified help file.
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),
// Tooltip for the combobox
ToolTipAttribute("Select a color for the shape"),
// The detail description
CommandHelpFileAttribute("ColorHelp.rtf")]
public const long m_nColorID = FlexConstants.m_nUserDefinedControlStartID + 1;
No comments:
Post a Comment