Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

void wxPropertyGrid::SetButtonShortcut ( int  keycode,
bool  ctrlDown = false,
bool  altDown = false 
)

Changes keyboard shortcut to push the editor button.

Remarks:
You can set default with keycode 0. Good value for the platform is guessed, but don't expect it to be very accurate.

Definition at line 7475 of file propgrid.cpp.

{
    if ( keycode )
    {
        m_pushButKeyCode = keycode;
        m_pushButKeyCodeNeedsCtrl = ctrlDown ? 1 : 0;
        m_pushButKeyCodeNeedsAlt = altDown ? 1 : 0;
    }
    else
    {
        m_pushButKeyCode = WXK_DOWN;
        m_pushButKeyCodeNeedsCtrl = 0;
        m_pushButKeyCodeNeedsAlt = 1;
    }
}

Generated by  Doxygen 1.6.0   Back to index