ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tktable-users
tktable-users
RE: [Tktable] Support for bindings
by Shawn Kielty other posts by this author
Mar 11 2004 6:40PM messages near this date
Re: [Tktable] Support for bindings | Re: [Tktable] Support for bindings
I think a way to handle the desire to have each cell bound to specific
activities {to make it more excel like) might be to create an embedded  text
widget in the active cell that has a unique tag to which all the cell
specific bindings are bound  - this gives a place to write the bindings that
are unique to the table cells.  Destroy the embedded widget - and create
another when the active cell changes.  -- The appearance is of all the cells
being bound.    It's a fair bit of work to get excel like tables, and
becomes more interesting as you look at cell or row/column multi-selection
and cut and paste functionality -- and cross platform behavior issues,
Again -- there will be some performance issues, but this might be an
improvement over creating an embedded text widget in every cell..

Shawn
  -----Original Message-----
  From: tktable-users-admin@[...].net
[mailto:tktable-users-admin@[...].net]On Behalf Of Gregory
Pierce
  Sent: Thursday, March 11, 2004 6:39 AM
  To: Jeff Hobbs; tktable-users@[...].net
  Subject: Re: [Tktable] Support for bindings


  Hi Jeff,

  Jeff Hobbs wrote:

Is there any planned support for adding bindings to
individual cells?

What can't you already do through the global bindings and the
commands that tell you the current cell?
  I do see your point. I was thinking that you needed to have a binding for
each cell. However,
  I think I can accomplish what I want through a global binding and the
commands you mention.


  Also, is there any plan to have each cell
have the same functionality as a text widget (bindings,
selection etc...). This would be a great

It may be great, but you are just better off embedded a text
widget there if you really need one.  That's a huge effort
that I don't see ever being done due to the complexity
involved (when just embedding a widget works too).
  I tried the text widget in each cell and it does have an effect on
performance. The other
  downside (which may have a workaround) is when you select a region of
cells when
  -selectionmode extended there's no indication that the cells are in a
selected region
  (background color doesn't change). I have to admit that I didn't play
around with all the
  options available to see if I can't get this to work. Is there a way to
have the text widget
  not cover up the column and row separators? Also, is there a way to have
the column and
  row separators turn a darker color (highlighted) when they are selected?

  Basically, my overall goal is to duplicate some of the basic features that
MS Excel has. For example,
  the way a region of cells appears when they are selected, double clicking
in order to edit a cell etc...

  Thanks for you help,

  Greg


  Jeff Hobbs, The Tcl Guy
  http://www.ActiveState.com/, a division of Sophos



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Tktable-users mailing list
Tktable-users@[...].net
https://lists.sourceforge.net/lists/listinfo/tktable-users

  ------------------------------------------------------- This SF.Net email
is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel
Robbins, President and CEO of GenToo technologies. Learn everything from
fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________ Tktable-users mailing list
Tktable-users@[...].net
https://lists.sourceforge.net/lists/listinfo/tktable-users
Attachments:
unknown1

Thread:
Gregory Pierce
Jeff Hobbs
Gregory Pierce
Gregory Pierce
Jeff Hobbs
Gregory Pierce
Jeff Hobbs
Jeff Hobbs
Gregory Pierce
Shawn Kielty
Gregory Pierce

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved