[REBOL] Re: Picking items in a text list
From: philb:upnaway at: 18-Jun-2001 18:03
Hi Carl,
yes that is just what I needed ....
Cheers Phil
On 18-Jun-01, [philb--upnaway--com] wrote:
> Hi list,
> Given a I have shown text list is it possible to programmatically
> items in it? (ie get them highlighted in yellow and appear in
> text-list/picked?)
> Cheers Phil
If I've understood what you meant, then yes. Try this...
view layout [
a-list: text-list "aa" "bb" "cc" "dd" "ee" "ff" "gg"
across
button "aa - dd" [
clear a-list/picked
insert a-list/picked ["aa" "dd"]
show a-list
]
button "cc - dd - ff" [
clear a-list/picked
insert a-list/picked ["cc" "dd" "ff"]
show a-list
]
]
--
Carl Read
[carl--cybercraft--co--nz]