Protected Member Functions | |
bool | SearchForKeysInOtherPages () const |
Should other pages be searched for when pressing a key? | |
![]() | |
void | RegisterFunction (const std::string &label, DWORD key, MFDFunctionPtr funLClick, MFDFunctionPtr funRClick=NULL) |
Registeres handler in MFD scope for buttons. | |
void | RegisterFunctionCont (const std::string &label, DWORD key, MFDFunctionPtr funLClick, MFDFunctionPtr funRClick=NULL) |
Registeres handler in MFD scope for buttons that should have a continous reaction. | |
void | RegisterPage (const MFDBUTTONMENU *menu, int size) |
Registeres button page, and buttons menu. |
Additional Inherited Members | |
![]() | |
MFDButtonPage () | |
Ctor. | |
virtual | ~MFDButtonPage () |
Dtor. | |
void | SwitchPage (MyMFDMultipleVessels *mfdInstance) const |
Switches between button pages. | |
void | SelectPage (MyMFDMultipleVessels *mfdInstance, int pageIndex) const |
Selects a specific buttons page. | |
bool | ConsumeButton (MyMFDMultipleVessels *mfdInstance, int button, int event) const |
Reacts on mouse clicks on buttons. | |
bool | ConsumeKeyBuffered (MyMFDMultipleVessels *mfdInstance, DWORD key) const |
Reacts on keyboard presses. | |
bool | ConsumeKeyImmediate (MyMFDMultipleVessels *mfdInstance, char *kstate) const |
Reacts on continuous keyboard presses. | |
int | ButtonMenu (const MFDBUTTONMENU **menu) const |
Returns button menu of the current page. | |
char * | ButtonLabel (int button) const |
Returns button labels of the current page. | |
![]() | |
typedef void(MyMFDMultipleVessels::* | MFDFunctionPtr )(void) |
Function pointers of the MFDClass. |
|
protectedvirtual |
Should other pages be searched for when pressing a key?
Normally the system reacts only keys on the current page. If this method returns true, then other pages are searched for as well.
Implements EnjoLib::MFDGoodies::MFDButtonPage< MyMFDMultipleVessels >.