Allow wxPG to take focus on the entire area even if wxPG is not a standalone control.
By default, to prevent wxPG from stealing focus from other controls, focus is moved to the grid only if it was already in one of its child controls. When newly introduced wxPG_EX_ALWAYS_ALLOW_FOCUS flag is set then wxPG can take focus on the entire grid area (on canvas) even if focus is moved from another control. Default wxPG behavior remains unchanged because wxPG_EX_ALWAYS_ALLOW_FOCUS flag must be explicitly set with wxPropertyGrid::SetExtraStyle function. Closes #16993.
This commit is contained in:
@@ -335,8 +335,16 @@ wxPG_EX_NO_TOOLBAR_DIVIDER = 0x08000000,
|
||||
|
||||
/** Show a separator below the toolbar.
|
||||
*/
|
||||
wxPG_EX_TOOLBAR_SEPARATOR = 0x10000000
|
||||
wxPG_EX_TOOLBAR_SEPARATOR = 0x10000000,
|
||||
|
||||
/** Allows to take focus on the entire area (on canvas)
|
||||
even if wxPropertyGrid is not a standalone control.
|
||||
*/
|
||||
wxPG_EX_ALWAYS_ALLOW_FOCUS = 0x00100000,
|
||||
|
||||
/** A mask which can be used to filter (out) all extra styles.
|
||||
*/
|
||||
wxPG_EX_WINDOW_STYLE_MASK = 0x1FFFF000
|
||||
};
|
||||
|
||||
#if wxPG_COMPATIBILITY_1_4
|
||||
|
Reference in New Issue
Block a user