Prev: telnet.tcl?
Next: Examples using expect
From: JHJL on 5 May 2010 10:21 I have a tablelist table with 3 columns, two of which are editable. By default a single left click (<Button-1>) on an editable cell starts the edit process. This works fine. However I would really like the binding to be <Double-Button-1> to start the edit and single click to browse/select because the table is usually only occassionally edited. Unfortunatley, whatever I try seems to break the edit behaviour of the widget. I have tried binding to [$tbl bodytag] and to <TablelistBody> but still cannot get a sequence that works. Any ideas ? many thanks in advance Julian H J Loaring
From: Csaba Nemethi on 5 May 2010 16:46 JHJL schrieb: > I have a tablelist table with 3 columns, two of which are editable. By > default a single left click (<Button-1>) on an editable cell starts > the edit process. This works fine. However I would really like the > binding to be <Double-Button-1> to start the edit and single click to > browse/select because the table is usually only occassionally edited. > > Unfortunatley, whatever I try seems to break the edit behaviour of the > widget. I have tried binding to [$tbl bodytag] and to <TablelistBody> > but still cannot get a sequence that works. > > Any ideas ? > > many thanks in advance > Julian H J Loaring Currently you can only achieve this by patching the Tablelist distribution file tablelistBind.tcl. If you let me know which file format (UNIX or Windows) you prefer, I will send you the patched version of that file. -- Csaba Nemethi http://www.nemethi.de mailto:csaba.nemethi(a)t-online.de
From: JHJL on 5 May 2010 16:59 On May 5, 9:46 pm, Csaba Nemethi <csaba.neme...(a)t-online.de> wrote: > JHJL schrieb: > > > I have a tablelist table with 3 columns, two of which are editable. By > > default a single left click (<Button-1>) on an editable cell starts > > the edit process. This works fine. However I would really like the > > binding to be <Double-Button-1> to start the edit and single click to > > browse/select because the table is usually only occassionally edited. > > > Unfortunatley, whatever I try seems to break the edit behaviour of the > > widget. I have tried binding to [$tbl bodytag] and to <TablelistBody> > > but still cannot get a sequence that works. > > > Any ideas ? > > > many thanks in advance > > Julian H J Loaring > > Currently you can only achieve this by patching the Tablelist > distribution file tablelistBind.tcl. If you let me know which file > format (UNIX or Windows) you prefer, I will send you the patched version > of that file. > > -- > Csaba Nemethi http://www.nemethi.de mailto:csaba.neme...(a)t-online.de Thank you, I really appreciate your support and of course for your ever so useful tablelist. I am currently working on a Windows application, so a tablelistBind.tcl in the format would be a fantastic help. kind regards Julian H J Loaring
From: JHJL on 6 May 2010 02:36 On May 5, 9:59 pm, JHJL <j...(a)hippospace.com> wrote: > On May 5, 9:46 pm, Csaba Nemethi <csaba.neme...(a)t-online.de> wrote: > > > > > > > JHJL schrieb: > > > > I have a tablelist table with 3 columns, two of which are editable. By > > > default a single left click (<Button-1>) on an editable cell starts > > > the edit process. This works fine. However I would really like the > > > binding to be <Double-Button-1> to start the edit and single click to > > > browse/select because the table is usually only occassionally edited. > > > > Unfortunatley, whatever I try seems to break the edit behaviour of the > > > widget. I have tried binding to [$tbl bodytag] and to <TablelistBody> > > > but still cannot get a sequence that works. > > > > Any ideas ? > > > > many thanks in advance > > > Julian H J Loaring > > > Currently you can only achieve this by patching the Tablelist > > distribution file tablelistBind.tcl. If you let me know which file > > format (UNIX or Windows) you prefer, I will send you the patched version > > of that file. > > > -- > > Csaba Nemethi http://www.nemethi.de mailto:csaba.neme...(a)t-online.de > > Thank you, I really appreciate your support and of course for your > ever so useful tablelist. I am currently working on a Windows > application, so a tablelistBind.tcl in the format would be a fantastic > help. > > kind regards > Julian H J Loaring- Hide quoted text - > > - Show quoted text - The tablelistBind.tcl you sent me works fine. Thank you for your superb prompt support kind regards Julian H J Loaring
|
Pages: 1 Prev: telnet.tcl? Next: Examples using expect |