AxMenuListCtrl Class Reference

Defines a list control to use in conjunction with AxStandardMenuController. More...

#include <ax/ax_controller_standard.h>

List of all members.

Public Member Functions

 AxMenuListCtrl ()
 AxMenuListCtrl (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxLC_REPORT)
 ~AxMenuListCtrl ()
void SetController (AxStandardMenuController *controller)
bool Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxLC_REPORT)
void Init ()
virtual bool RefreshMenu (AxMenu *menu)
 Called when the menu must be refreshed.
virtual bool UpdateMenuItem (AxMenu *menu, AxMenuItem *item)
 Called when a menu item must be updated.
virtual bool SetMenuItemData (wxListItem &info, AxMenuItem *item)
 Set the menu item data.
virtual bool SetMenuSelection (AxMenuItem *menuItem)
 Called when a menu item should be selected.
virtual AxMenuItemGetMenuSelection () const
 Called to get the currently selected menu item.
void SetSelection (long sel, bool select)
 Set selection.
int GetSelection () const
 Get selection.
virtual bool IdleProcessing ()
 Perform any required idle processing.
virtual bool ApplySettings (int hints, const AxVisualSettings &settings)
 Apply settings to the appearance, in particular the background colour.
void OnSelect (wxListEvent &event)
void OnActivate (wxListEvent &event)
void OnSize (wxSizeEvent &event)
void OnChar (wxKeyEvent &event)

Protected Attributes

AxStandardMenuControllerm_controller
AxMenum_menu
int m_toActivate


Detailed Description

Defines a list control to use in conjunction with AxStandardMenuController.


Constructor & Destructor Documentation

AxMenuListCtrl::AxMenuListCtrl (  )  [inline]

AxMenuListCtrl::AxMenuListCtrl ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxLC_REPORT 
)

AxMenuListCtrl::~AxMenuListCtrl (  ) 


Member Function Documentation

void AxMenuListCtrl::SetController ( AxStandardMenuController controller  )  [inline]

bool AxMenuListCtrl::Create ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxLC_REPORT 
)

void AxMenuListCtrl::Init (  ) 

bool AxMenuListCtrl::RefreshMenu ( AxMenu menu  )  [virtual]

Called when the menu must be refreshed.

bool AxMenuListCtrl::UpdateMenuItem ( AxMenu menu,
AxMenuItem item 
) [virtual]

Called when a menu item must be updated.

bool AxMenuListCtrl::SetMenuItemData ( wxListItem &  info,
AxMenuItem item 
) [virtual]

Set the menu item data.

bool AxMenuListCtrl::SetMenuSelection ( AxMenuItem menuItem  )  [virtual]

Called when a menu item should be selected.

AxMenuItem * AxMenuListCtrl::GetMenuSelection (  )  const [virtual]

Called to get the currently selected menu item.

void AxMenuListCtrl::SetSelection ( long  sel,
bool  select 
)

Set selection.

int AxMenuListCtrl::GetSelection (  )  const

Get selection.

bool AxMenuListCtrl::IdleProcessing (  )  [virtual]

Perform any required idle processing.

bool AxMenuListCtrl::ApplySettings ( int  hints,
const AxVisualSettings settings 
) [virtual]

Apply settings to the appearance, in particular the background colour.

void AxMenuListCtrl::OnSelect ( wxListEvent &  event  ) 

void AxMenuListCtrl::OnActivate ( wxListEvent &  event  ) 

void AxMenuListCtrl::OnSize ( wxSizeEvent &  event  ) 

void AxMenuListCtrl::OnChar ( wxKeyEvent &  event  ) 


Member Data Documentation

AxStandardMenuController* AxMenuListCtrl::m_controller [protected]

AxMenu* AxMenuListCtrl::m_menu [protected]

int AxMenuListCtrl::m_toActivate [protected]


The documentation for this class was generated from the following files:
Generated on Wed May 6 19:20:21 2009 for AxTk by  doxygen 1.5.1