From: Martin.Backe@HSC.com - 2001-08-24 18:08:06
|
Jeff, Regarding tk_tablePasteHandler, the main thing is to offer sample code that can be commented/uncommented to allow for the desired behavior. I'm not sure I understand your comment below the cursor discussion (3rd bullet). I added a little logic to my tkTable.tcl that maintains the arrow cursor while over title cells. The version of Excel I use (Office 97) does not allow the left edge of the right most cell to be positioned BEYOND the table borders. Create a simple table (pack [table .tb] -fill both -expand true) and drag the left edge of the right most cell beyond the table's right border. You will observe that the cell's border cannot now be accessed for resizing. You must increase the table size to get to this cell again. Excel properly keeps this from happening. Even though you can't see the cell's edge, you can still grab it and shrink the cell again. Minor changes are needed (in tkTable.tcl) to mirror Exel's behavior in this regard. I'm sending you in a separate e-mail my final tkTable.tcl file that implements the title cell paste (which you've already incorporated), the title cell cursor, the minimum cell width (my application doesn't allow row height changes, so the tkTable.tcl would require further changes to handle minimum heights), and cell resize limiting (beyond borders). Perhaps it can be useful if you still think these ideas have merit. Marty "Jeff Hobbs" <JeffH@ActiveState.com>@lists.sourceforge.net on 08/23/2001 06:29:16 PM Sent by: tkt...@li... To: <Mar...@hs...>, <tkt...@li...> cc: Subject: RE: [Tktable] Minimum Column Size Option? Martin.Backe@HSC.com wrote: ... > Suggested options: > > - a minimum col/row size option (characters or pixels) Aside from the current 0? :) > - pasting into title cells (allow/disallow) Changed to disallow for now. tk_tablePasteHandler really is meant for the user to modify though. > - cursor option for title cells (the insertion cursor doesn't seem > appropriate for title cells - at least when pasting is disallowed) Hmmm, yes difficult. Title cells are inherently anchored and non-selectable. Someone else suggested generic "anchorable" rows or columns, which could make "titles" obsolete, but that would be an incompatible change. > - You shouldn't be able to adjust the width of a column or row beyond > the visible table. This probably should be a feature, not option. I modelled this on Windows and Excel, which allows extending the border off the window... Jeff _______________________________________________ Tktable-users mailing list Tkt...@li... http://lists.sourceforge.net/lists/listinfo/tktable-users |