Hi Charles,

Take a look at Henrik Mikael Kristensen's listview widget:

http://www.hmkdesign.dk/rebol/list-view/list-view.html

It's really useful, and very easy to learn.  Here are some examples:


rebol []

if not exists? %list-view.r [write %list-view.r read
    http://www.hmkdesign.dk/rebol/list-view/list-view.r
]
do %list-view.r

data-block: [["asdf" "sdfg" "dfgh"] ["qwer" "wert" "erty"]]

view center-face gui: layout [
    theview: list-view 775x200 with [
        data-columns: [one two three]
        data: copy data-block
    ]
]


rebol []

if not exists? %list-view.r [write %list-view.r read
    http://www.hmkdesign.dk/rebol/list-view/list-view.r
]
do %list-view.r

data-block: [["asdf" "sdfg" "dfgh"] ["qwer" "wert" "erty"]]

view center-face gui: layout [
    theview: list-view 775x200 with [
        data-columns: [one two three]
        data: copy data-block
        editable?: true
    ]
    across
    button "add row" [theview/insert-row]
    button "remove row" [theview/remove-row]
    button "filter data" [
        filter-text: request-text/title trim {
            Filter Text (leave blank to refresh all data):}
        theview/filter-string: filter-text
        theview/update
    ]
    button "save db" [save %data.txt theview/data]
]


You can edit the data by clicking right on the listview.  It does a lot more
too.  The documentation page above explains it all in detail...



Quoting Charles <[EMAIL PROTECTED]>:

>
> On Sun, 16 Apr 2006 13:11:33 -0400, Anton Rolls <[EMAIL PROTECTED]>
> wrote:
>
>>
>> Hi Charles,
>>
>> Yes, you found a craziness of the inbuilt list style.
>    I seem to be getting told that sort of thing frequently..
>
>> The block directly in the subfunc body, referenced by the local
>> word stuff is indeed the only way to access the data.
>    Has anyone addressed this issue with RT? It seems an unusual
> inconvenience, unless I'm - as often happens - completely missing
> something..?
>
>>      stuff: second second get in my-list 'subfunc
>>
>> That gets the second item in the body of subfunc.
>    That's all well and good, but I'm having a devil of a time modifying
> the data so it'll show up when I use 'show my-list'. Presumably I'd have
> to modify 'subfunc's code, yes? Or could I re-define 'subfunc so that
> 'stuff refers to the 'data field in the object?
>
>    I'm sorry for being the total newbie - I've hobbied with REBOL for a
> few years, but haven't gotten really deep into it. I'd like to make more
> use of it, but I seem to have plans grander than my abilities, and I don't
> often know where to go to figure it out. It's not that I want anyone to
> write it for me, but I sometimes don't know where to begin learning, even.
> Shoot, I still haven't even mastered parse - one of those "I keep meaning
> to" things. So, I pray you'll all bear with me and my apparent density.
>    And, for the dozenth time: Thanks.
>
> --Charles
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>
>



-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to