author | Radek Brich <radek.brich@devl.cz> |
Sun, 10 Apr 2011 22:54:38 +0200 | |
changeset 5 | ae128c885d0f |
parent 1 | 69318aba22bf |
child 9 | 7175ed629a76 |
permissions | -rw-r--r-- |
0 | 1 |
Focus |
2 |
===== |
|
3 |
||
1
69318aba22bf
Menu development. New focus. Easier imports from tuikit package.
Radek Brich <radek.brich@devl.cz>
parents:
0
diff
changeset
|
4 |
Only one widget can have focus at the time. |
69318aba22bf
Menu development. New focus. Easier imports from tuikit package.
Radek Brich <radek.brich@devl.cz>
parents:
0
diff
changeset
|
5 |
Top widget has link to currently focused widget in 'focuswidget'. |
0 | 6 |
|
7 |
Events emitted on change: focus, unfocus |
|
8 |
||
1
69318aba22bf
Menu development. New focus. Easier imports from tuikit package.
Radek Brich <radek.brich@devl.cz>
parents:
0
diff
changeset
|
9 |
mousedown - focus widget under mouse |
0 | 10 |
|
1
69318aba22bf
Menu development. New focus. Easier imports from tuikit package.
Radek Brich <radek.brich@devl.cz>
parents:
0
diff
changeset
|
11 |
tab - focus next child in container (depends on canfocus()) |
0 | 12 |
shift-tab - previous child |
13 |
||
14 |
hide() -> unfocus |
|
1
69318aba22bf
Menu development. New focus. Easier imports from tuikit package.
Radek Brich <radek.brich@devl.cz>
parents:
0
diff
changeset
|
15 |
|
69318aba22bf
Menu development. New focus. Easier imports from tuikit package.
Radek Brich <radek.brich@devl.cz>
parents:
0
diff
changeset
|
16 |
tab/shift-tab into / out off containers? |
5
ae128c885d0f
New GridLayout. Change cursor behavior (hide on unfocus event). Change resize event to propagate through containers. Change container clipping - allowlayout=false children are clipped without borders. More Widget doc.
Radek Brich <radek.brich@devl.cz>
parents:
1
diff
changeset
|
17 |
|
ae128c885d0f
New GridLayout. Change cursor behavior (hide on unfocus event). Change resize event to propagate through containers. Change container clipping - allowlayout=false children are clipped without borders. More Widget doc.
Radek Brich <radek.brich@devl.cz>
parents:
1
diff
changeset
|
18 |
widget.hasfocus() |