Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

« Newer Snippets
Older Snippets »
Showing 1-4 of 4 total  RSS 

face-words - Returns a block of words that refer to faces in a face's pane.

    face-words: func [
        "Returns a block of words that refer to faces in the face's pane."
        face
    ][
        remove-each item collect word [foreach f face/pane [word: f/var]] [none? item]
    ]

add face to pane snippet

add-button: does [
    append lay/pane layout/offset [
        button [alert "I'm new!"]
    ] 100x100
    show lay
]
view lay: layout [size 400x300 button [add-button]]

add face to pane snippet

add-button: does [
    append lay/pane layout/offset [
        button [alert "I'm new!"]
    ] 100x100
    show lay
]
view lay: layout [size 400x300 button [add-button]]

add face to pane snippet

add-button: does [
    append lay/pane layout/offset [
        button [alert "I'm new!"]
    ] 100x100
    show lay
]
view lay: layout [size 400x300 button [add-button]]
« Newer Snippets
Older Snippets »
Showing 1-4 of 4 total  RSS