All Frameworks  Class Hierarchy  This Framework  Indexes

ApplicationFrame Macro CATImplementHeaderResources

Macro CATImplementHeaderResources (DerivedHeader,BaseHeader,Rsrc)
Implements the methods to get the header's resource file.
Parameters:
DerivedHeader
Command header class name
BaseHeader
Base class of your header class.
Rsrc
Resource file name There is a Nls resources file , where each part must be translated and there is a Rsc file. HeaderID is the identifier of the header, in other words the first argument of the command header constructor class.
In the Rsrc.CATNls file you find:
  • Rsrc.HeaderID.Title
  • Text displayed in the menu bar for the command
  • Rsrc.HeaderID.Help
  • Text displayed in the status bar as the command help message when the mouse moves over the command
  • Rsrc.HeaderID.ShortHelp
  • Text displayed in a balloon as the command short help message when the mouse moves over the command.
  • Rsrc.HeaderID.LongHelp
  • Text displayed in a balloon when the end user clicks on the help command, which turns the mouse cursor as a question mark, and then clicks on the icon representing the command.
  • Rsrc.HeaderID.Category
  • In Tools/Customize/Command, its a means to sort commands.

In this Rsrc.CATRsc file you find:
  • Rsrc.HeaderID.Icon.Normal
  • Rsrc.HeaderID.LongHelpId
  • Identifier to associate a URL with the command. The URL is stored in a .map file
  • Rsrc.HeaderID.Accelerator
  • A combination of keys, such as "Ctrl+character", used to activate the command directly (known as shortcut in Microsoft publications.)
See also:
CATDeclareHeaderResources

This object is included in the file: CATCommandHeader.h
If needed, your Imakefile.mk should include the module: CATApplicationFrame

Copyright © 2003, Dassault Systèmes. All rights reserved.