How to use a face in a layout?
Where can I find an example of a view including a
and a button?
posted by: OneArb 6-Dec-2018/4:34:07-8:00
my-window: center-face make face [
my-window/pane: collect [
keep make-face/spec 'button [
action: [alert "Pressed!"]
posted by: Chris 6-Dec-2018/12:32:53-8:00
posted by: Chris 6-Dec-2018/12:38:37-8:00
I am trying to create a custom face I can reuse in a layout.
How can I create a face I can use like a standard face?
posted by: OneArb 11-Dec-2018/10:56:30-8:00
Do you have some pseudocode for what you're trying to do?
You can customize buttons or other custom styles in VID using STYLE and STYLIZE:
view layout [
style BLUE-BUTTON: BUTTON blue with [
blue-button "I'm Blue"
blue-button "So am I"
posted by: Chris 16-Dec-2018/23:10:05-8:00