View's refinements

view can also have one or several refinements. Their details are described in blocks that come after the main view block, as you can see in the following schema of a general view block:

view/refine1/refine2 [    container settings    layout commands    face1 facets [action facet]    face2 facets [action facet]    ...][details refine1][details refine2]

To determine where a window must appear on the screen, use the options refinement with a block giving the offset value, like this:

;-- see Chapter09/container-layout.red:view/options [][offset: 400x100]

You might have noticed that a standard window is not resizable or maximizable. To accomplish this, we need the flags refinement with the resize word:

view/flags [][resize]

These flags can ...

Get Learn Red - Fundamentals of Red now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.