MGUI::MENU_EDIT Class Reference

Menu supporting "edit" commands and automatic connection to "EDIT" controls. More...

#include <mgui/menuedit.h>

Inheritance diagram for MGUI::MENU_EDIT:
Inheritance graph
[legend]

List of all members.

Public Types

enum  COMMAND {
  COMMAND_Cut = 0x00010000, COMMAND_Copy = 0x00020000, COMMAND_Paste = 0x00040000, COMMAND_Clear = 0x00080000,
  COMMAND_InsertFile = 0x00100000, COMMAND_Find = 0x00200000, COMMAND_FindAgain = 0x00400000, COMMAND_GoToLine = 0x00800000,
  COMMAND_CharacterMap = 0x01000000, COMMAND_Format = 0x02000000, COMMAND_ShowFormatCodes = 0x04000000, COMMAND_DEFAULT = 0x000F0000
}

Public Member Functions

 MENU_EDIT (const MENU_EDIT &rhs)
 MENU_EDIT ()
 ~MENU_EDIT ()
void AddCommands (COMMAND commands=COMMAND_DEFAULT)

Detailed Description

Menu supporting "edit" commands and automatic connection to "EDIT" controls.

When placed on a menu bar, any controls in the same shell that are derived from CTRL_EDIT_BASE automatically register themselves and handle enabling and disabling Cut and Copy based on whether or not there is a selection active.


Member Enumeration Documentation

Command IDs. Note: these can also be used IDs to SetEnabledID().

Enumerator:
COMMAND_Cut 
COMMAND_Copy 
COMMAND_Paste 
COMMAND_Clear 
COMMAND_InsertFile 
COMMAND_Find 
COMMAND_FindAgain 
COMMAND_GoToLine 
COMMAND_CharacterMap 
COMMAND_Format 

For WYSIWYG controls only.

COMMAND_ShowFormatCodes 

For WYSIWYG controls only.

COMMAND_DEFAULT 

Default is Cut, Copy, Paste and Clear.


Constructor & Destructor Documentation

MGUI::MENU_EDIT::MENU_EDIT (  ) 

Default constructor.

MGUI::MENU_EDIT::MENU_EDIT ( const MENU_EDIT rhs  ) 

Copy constructor.

MGUI::MENU_EDIT::~MENU_EDIT (  ) 

Destructor.


Member Function Documentation

void MGUI::MENU_EDIT::AddCommands ( COMMAND  commands = COMMAND_DEFAULT  ) 

Add one or more standard edit menu commands to the menu.


The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:36:13 2012 for TNTsdk 2012 by  doxygen 1.6.1