Created
July 10, 2020 21:46
-
-
Save greggirwin/13965522516e676fe29ec9cb31e69e80 to your computer and use it in GitHub Desktop.
View/flags demo, showing what window flags are available.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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