A few notes on Stage and View 1. The buck stops w...
# tornadofx
c
A few notes on Stage and View 1. The buck stops with Stage. Stage mirrors an OS window. If you want to set the minimum size of the app, use the Stage settings. Nodes also have a min setting, but that won't prevent the OS handles on a window from being displayed. 2. There's a Scene. This is an ambiguous construct that's somewhat hidden in TornadoFX. Before SubScene, this was the only way you could adjust the viewpoint of the graphics. This ends up not being an important distinction in most apps, so the one-to-one relationship that occurs between Stage - Scene - Parent turns into just Stage and root in TornadoFX. 3. Put global stuff on Scene. A Scene is a great place to put app-wide event handlers like keyboard shortcuts. It gets the first crack of the capture events before passing along to root and children.
1
👍 1