Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Yet More VID Help...

From: nick::guitarz::org at: 17-Apr-2006 2:56

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 <chalz-earthlink.net>: