Skip to content

Instantly share code, notes, and snippets.

@greggirwin
Created July 10, 2020 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greggirwin/13965522516e676fe29ec9cb31e69e80 to your computer and use it in GitHub Desktop.
Save greggirwin/13965522516e676fe29ec9cb31e69e80 to your computer and use it in GitHub Desktop.
View/flags demo, showing what window flags are available.
Red []
window-flags: [
resize no-title no-border no-min no-max no-buttons modal popup
]
show-win-using-flags: func [flags [block!]][
view/flags [backdrop sky button "OK" [unview]] flags
]
spec: [
below
text "You will see that not all flags combine well."
button "View" [show-win-using-flags window-flags]
]
lit: func [value][to lit-word! value]
foreach flag window-flags [
append spec compose/deep [
check on (form flag) extra (lit flag) [alter window-flags (lit flag)]
]
]
view spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment