FocusRetentionPolicy
#include <bb/cascades/FocusRetentionPolicy>
Specifies the conditions under which a control can lose focus when the user interacts with other controls.
BlackBerry 10.0.0
Public Types Index
enum TypeDefault = (0 << 0), LoseOnScroll = (1 << 0), LoseToFocusable = (1 << 1), LoseToNonFocusable = (1 << 2) |
Public Functions Index
| Q_DECLARE_FLAGS (Types, Type) |
Public Types
The available focus retention policies for a control.
BlackBerry 10.0.0
- Default = (0 << 0)
The default policy preferred by the Control.
Since:BlackBerry 10.0.0
- LoseOnScroll = (1 << 0)
The control loses focus when the user scrolls within a scrollable control, like a ListView or ScrollView.
Since:BlackBerry 10.0.0
- LoseToFocusable = (1 << 1)
The control loses focus if another focusable control is requesting focus.
Since:BlackBerry 10.0.0
- LoseToNonFocusable = (1 << 2)
The control loses focus if the user touches a non-focusable control.
Since:BlackBerry 10.0.0
Public Functions
Defines combinations of focus retention policies.
This flag overrides the default FocusRetentionPolicy for a control.
BlackBerry 10.0.0