REBOL [ Title: "Demo 12 - List view with inline editing actions" Short: "Inline Editing 2" Author: ["Henrik Mikael Kristensen"] Copyright: "2006 - HMK Design" Filename: %demo12.r Version: 0.0.1 Created: 25-Feb-2006 Date: 25-Feb-2006 License: { BSD (www.opensource.org/licenses/bsd-license.php) Use at your own risk. } Purpose: { List View with inline editing fields with actions. Double-click a row to edit it. } History: [] Keywords: [inline-edit actions] ] do http://www.hmkdesign.dk/rebol/list-view/list-view.r view layout [ text bold {List view with inline editing.} text {Double-click a row to edit it.} text {TAB-EDIT-ACTION is carried out every time you tab to the next field (printed in console).} text {PRE-SUBMIT-EDIT-ACTION is carried out just before the edit fields are hidden.} text {Data is resorted on the fly, if sorting is selected and edits are submitted.} li: list-view 400x200 with [ editable?: true data: [ ["Inline editing" "is" "Fun!"] ["AltME" "is" "also fun"] ["123" "456" "789"] ] tab-edit-action: [print "Tabbing out"] pre-submit-edit-action: [print "Finishing"] ] ]