tablelist: <Return> the same as <Tab> when editing.



With the code below, when we are editing a cell, pressing <Tab>
terminates the edition, moves to the next editable cell and edits it.

I want to do that with the <Return> key.

After much trial and error (too much to mention) and turned very
confused about TableListEdit, TableListBody, etc, it is time to ask the
experts.

package require tablelist
set table [tablelist::tablelist .gr -stripebackground #e0e8f0 \
-columns {30 "One" \
10 "Two" right 10 "Three" right \
10 "Four" right 10 "Five" right} \
-selecttype cell -selectmode browse \
]
pack $table -expand true -fill both
foreach c { 1 2 3 4 } { $table columnconfigure $c -editable 1 }
foreach c { 1 2 3 4 } { $table insert end [list 1 2 3 4 5] }

--
Oscar
.



Relevant Pages

  • Re: JTable/TableModel undoing
    ... similar and related edits (e.g. collapsing multiple single character deletions into a "word deleted" edit). ... Either a cell was updated or it wasn't. ... E.g. what should happen if the user has edited some change in a cell, the change has not been applied to the model, but the user invokes undo? ... Here it seems to me that the JTable should have delivered change notifications for the text edits to the undo manager. ...
    (comp.lang.java.programmer)
  • Re: tablelist: the same as when editing.
    ... terminates the edition, moves to the next editable cell and edits it. ... confused about TableListEdit, TableListBody, etc, it is time to ask the ...
    (comp.lang.tcl)
  • Re: Validation is not working
    ... the change event only fires when someone edits a cell. ... Private Sub Worksheet_Change ... MsgBox "That Entry is NOT ALLOWED!" ...
    (microsoft.public.excel.programming)
  • Macro with relative address problem XSL 2000
    ... Basically I want to create a macro that edits a ... Cell Contents ... On Stop Recording Toolbar depress Relative Address, ... Since the cursor is on a A2, Pressing CTRL+z will make the contents ...
    (microsoft.public.excel)
  • Re: Macro Help (Uppercase multiple ranges?)
    ... Can you tell me what further edits I need to make? ... How do I edit this Code to properly work on multiple Ranges ... Macro to Change All Text in a Range to Uppercase Letters ... ' Loop to cycle through each cell in the specified range. ...
    (microsoft.public.excel.misc)