mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 17:45:23 +00:00
Add FocusablePanel doc
This commit is contained in:
parent
4515692e71
commit
6f35abb62a
15
doc/FocusablePanel.md
Normal file
15
doc/FocusablePanel.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# FocusablePanel
|
||||||
|
|
||||||
|
You can use this as a base class for your widgets instead of User Widget,
|
||||||
|
and get the following behaviour:
|
||||||
|
|
||||||
|
## Initial focus
|
||||||
|
|
||||||
|
Set the Initial Focus Widget Name to the name of a focusable widget in this panel.
|
||||||
|
When the panel os attached to the viewport, this widget will be given the focus.
|
||||||
|
|
||||||
|
## Remembering focus
|
||||||
|
|
||||||
|
This widget provides `SavePreviousFocus` and `RestorePreviousFocus` methods
|
||||||
|
which can save / restore focus as needed. They are not called by default but
|
||||||
|
are used in [Menus](Menus.md).
|
Loading…
x
Reference in New Issue
Block a user