AxMenuListCtrl Class Reference
[Basic AxTk UI classes]

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

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

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

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

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

Called to get the currently selected menu item.

int AxMenuListCtrl::GetSelection (  )  const

Get selection.

bool AxMenuListCtrl::IdleProcessing (  )  [virtual]

Perform any required idle processing.

void AxMenuListCtrl::Init (  ) 

void AxMenuListCtrl::OnActivate ( wxListEvent &  event  ) 

void AxMenuListCtrl::OnChar ( wxKeyEvent &  event  ) 

void AxMenuListCtrl::OnSelect ( wxListEvent &  event  ) 

void AxMenuListCtrl::OnSize ( wxSizeEvent &  event  ) 

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

Called when the menu must be refreshed.

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

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.

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

Set selection.

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

Called when a menu item must be updated.


Member Data Documentation


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

Generated on Wed May 6 19:22:07 2009 for AxTk by  doxygen 1.5.8