Skip to content
Stanislav Podolia edited this page Aug 8, 2019 · 2 revisions

Flow Wiki

TCase

Picks the best case based on how much space is available.
The sizes define the ideal size range for the correspond case.
The length of the sizes has to match the cases.
The sizes should reflect the minimum and maximum box that is useful the corresponding case.
Example: If we have a small version of a UI that does not require more than 100x100 pixels,
and then a bigger one, we can do this to automatically choose the best one based on the
available space:
TCase( [ TFixed(100.0, 100.), TGroup2(TFixed(100.0, 100.0), TFillXY())], [ small, big ] )

Clone this wiki locally