.
original commit: d7b87ced74fe033b2ca0b763d61da503df5876ce
This commit is contained in:
parent
dd08f04574
commit
cc733f452d
|
@ -297,16 +297,26 @@
|
||||||
cb icb
|
cb icb
|
||||||
rb irb
|
rb irb
|
||||||
ch
|
ch
|
||||||
txt)])
|
txt)]
|
||||||
(cons (make-object popup-test-canvas%
|
[names (list "label" "image label"
|
||||||
items
|
|
||||||
(list "label" "image label"
|
|
||||||
"button" "image button"
|
"button" "image button"
|
||||||
"list box"
|
"list box"
|
||||||
"checkbox" "image checkbox"
|
"checkbox" "image checkbox"
|
||||||
"radio box" "image radiobox"
|
"radio box" "image radiobox"
|
||||||
"choice"
|
"choice"
|
||||||
"text")
|
"text")])
|
||||||
|
(make-object choice%
|
||||||
|
"Set Focus"
|
||||||
|
(cons "..." names)
|
||||||
|
lp
|
||||||
|
(lambda (c e)
|
||||||
|
(let ([v (send c get-selection)])
|
||||||
|
(when (positive? v)
|
||||||
|
(send (list-ref items (sub1 v)) focus)
|
||||||
|
(send c set-selection 0)))))
|
||||||
|
(cons (make-object popup-test-canvas%
|
||||||
|
items
|
||||||
|
names
|
||||||
cp)
|
cp)
|
||||||
items)))
|
items)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user