root/functions/get-values.r

Revision 112, 0.9 kB (checked in by ashley, 8 months ago)

Added pill.r
Scroller fixes
Major color / theme management changes (in progress)

Line 
1get-values: make function! [
2        "Gets values from input widgets within a display or grouping widget."
3        face [object!] "Display face"
4        /type "Precede each value with its type"
5        /local blk
6] [
7        all [
8                find [scroll-panel tab-panel] face/type
9                face: either block? face/pane [face: face/pane/1] [face/pane]
10        ]
11        blk: copy []
12        foreach widget face/pane [
13                if find [
14                        area check check-group drop-list edit-list field group-box password radio-group scroll-panel slider tab-panel table text-list
15                ] widget/type [
16                        all [type insert tail blk widget/type]
17                        insert/only tail blk case [
18                                find [area drop-list edit-list field password] widget/type [widget/text]
19                                find [check check-group slider] widget/type [widget/data]
20                                find [radio-group table text-list] widget/type [widget/picked]
21                                find [scroll-panel group-box tab-panel] widget/type [
22                                        either type [get-values/type widget] [get-values widget]
23                                ]
24                        ]
25                ]
26        ]
27        blk
28]
Note: See TracBrowser for help on using the browser.