Changeset 112 for widgets/menu.r
- Timestamp:
- 12/31/07 22:18:08 (11 months ago)
- Files:
-
- 1 modified
-
widgets/menu.r (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
widgets/menu.r
r107 r112 9 9 size: 100x5 10 10 pane: [] 11 color: colors/ widget12 rebind: make function! [] [color: colors/ widget]11 color: colors/outline-light 12 rebind: make function! [] [color: colors/outline-light] 13 13 init: make function! [/local item item-offset] [ 14 14 item-offset: 2x0 … … 23 23 feel: make default-feel [ 24 24 over: make function! [face act pos] [ 25 either act [select- row face] [deselect-rowface]25 either act [select-face face] [deselect-face face] 26 26 ] 27 27 engage: make function! [face act event] [ 28 28 if act = 'up [ 29 ; de-select previous entry30 if face/parent-face/data <> face [31 face/parent-face/data/color: none32 face/parent-face/data/font/color: black33 show face/parent-face/data34 face/parent-face/data: face35 ]36 29 ; evaluate block associated with choice 37 30 do select face/data choose face/parent-face face/options face/parent-face/offset + face/offset + as-pair 0 face/size/y extract face/data 2 31 deselect-face face 38 32 ] 39 33 ]
