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 Gregory Pierce other posts by this author
Mar 15 2004 7:01PM messages near this date
RE: [Tktable] Support for bindings | [Tktable] changing default bindings
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html> 
<head> 
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> 
  <title> </title>
</head> 
<body text="#000000" bgcolor="#ffffff"> 
Hi Shawn,<br> 
<br> 
I understand your suggestion, however, I don't want to remove the text
widget. I want all the cells contents visible<br> 
to the user at all times. The user needs to have control over font
size, foreground and background colors and not<br> 
just on the whole text widget. They need to have the ability to make
these change on individual characters within<br> 
each widget. As far as I know the only way to do this is to use the
text widget. The only downside is a performance<br> 
loss when resizing rows and columns for large tables.<br> 
<br> 
Thanks for the suggestion,<br> 
<br> 
Greg<br> 
<br> 
Shawn Kielty wrote:<br> 
<blockquote type="cite"
 cite="midBAEPKAPLEPADGHFOIAGKGEHKCDAA.shawnkielty@earthlink.net"> 
  <title> </title>
  <meta http-equiv="Content-Type" content="text/html; "> 
  <meta content="MSHTML 6.00.2800.1400" name="GENERATOR"> 
  <div> <font face="Arial" color="#0000ff" size="2"><span
 class="312021118-11032004"> I think a way to handle&nbsp;the desire to have
each cell bound to specific activities {to make it more excel like)
might be to&nbsp;create an embedded &nbsp;text widget in the active cell&nbsp;that&nbsp;has
a unique&nbsp;tag to which all the cell specific bindings are bound&nbsp; - this
gives a place to write the bindings that are unique to the table
cells.&nbsp; Destroy the embedded widget - and create another when the
active cell changes.&nbsp; -- The appearance is of all the cells being
bound.&nbsp;&nbsp;&nbsp;&nbsp;It's&nbsp;a fair bit of work to get excel like tables, and bec
omes
more interesting as you look at cell or row/column multi-selection and
cut and paste functionality -- and cross platform behavior issues,&nbsp;
Again -- there will be some performance issues, but this might be an
improvement over creating an embedded text widget in every cell.. </span> </font></div>
  <div> &nbsp;</div>
  <div> <font face="Arial" color="#0000ff" size="2"><span
 class="312021118-11032004"> Shawn </span></font></div>
  <blockquote> 
    <div class="OutlookMessageHeader" dir="ltr" align="left"> <font
 face="Tahoma" size="2"> -----Original Message-----<br>
    <b> From:</b> <a class="moz-txt-link-abbreviated" href="mailto:tktable-users-admin@lists.
sourceforge.net"> tktable-users-admin@[...].net</a>
[<a class="moz-txt-link-freetext" href="mailto:tktable-users-admin@lists.sourceforge.net"> ma
ilto:tktable-users-admin@[...].net</a> ]<b>On Behalf Of </b>Gregory
Pierce<br> 
    <b> Sent:</b> Thursday, March 11, 2004 6:39 AM<br>
    <b> To:</b> Jeff Hobbs; <a class="moz-txt-link-abbreviated" href="mailto:tktable-users@li
sts.sourceforge.net"> tktable-users@[...].net</a><br>
    <b> Subject:</b> Re: [Tktable] Support for bindings<br>
    <br> 
    </font> </div>
Hi Jeff,<br> 
    <br> 
Jeff Hobbs wrote:<br> 
    <blockquote cite="mid016d01c40712$6dcd18a0$de04a8c0@activestate.ca"
 type="cite"> 
      <blockquote type="cite"> 
        <pre wrap=""> Is there any planned support for adding bindings to 
individual cells?
    </pre> 
      </blockquote> 
      <pre wrap=""> <!---->
What can't you already do through the global bindings and the
commands that tell you the current cell?
  </pre> 
    </blockquote> 
I do see your point. I was thinking that you needed to have a binding
for each cell. However,<br> 
I think I can accomplish what I want through a global binding and the
commands you mention.<br> 
    <br> 
    <blockquote cite="mid016d01c40712$6dcd18a0$de04a8c0@activestate.ca"
 type="cite"> 
      <pre wrap="">   </pre>
      <blockquote type="cite"> 
        <pre wrap=""> 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 
    </pre> 
      </blockquote> 
      <pre wrap=""> <!---->
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).
  </pre> 
    </blockquote> 
I tried the text widget in each cell and it does have an effect on
performance. The other<br> 
downside (which may have a workaround) is when you select a region of
cells when<br> 
-selectionmode extended there's no indication that the cells are in a
selected region<br> 
(background color doesn't change). I have to admit that I didn't play
around with all the<br> 
options available to see if I can't get this to work. Is there a way to
have the text widget<br> 
not cover up the column and row separators? Also, is there a way to
have the column and<br> 
row separators turn a darker color (highlighted) when they are selected?<br> 
    <br> 
Basically, my overall goal is to duplicate some of the basic features
that MS Excel has. For example,<br> 
the way a region of cells appears when they are selected, double
clicking in order to edit a cell etc...<br> 
    <br> 
Thanks for you help,<br> 
    <br> 
Greg<br> 
    <br> 
    <blockquote cite="mid016d01c40712$6dcd18a0$de04a8c0@activestate.ca"
 type="cite"> 
      <pre wrap="">   Jeff Hobbs, The Tcl Guy
  <a class="moz-txt-link-freetext" href="http://www.ActiveState.com/"> http://www.ActiveState
.com/</a> , 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&amp;alloc_id=3638&amp;op=click
_______________________________________________
Tktable-users mailing list
<a class="moz-txt-link-abbreviated"
 href="mailto:Tktable-users@lists.sourceforge.net"> Tktable-users@[...].net</a>
<a class="moz-txt-link-freetext"
 href="https://lists.sourceforge.net/lists/listinfo/tktable-users"> https://lists.sourceforge
.net/lists/listinfo/tktable-users</a> 

  </pre> 
    </blockquote> 
------------------------------------------------------- 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&amp;alloc_id=3638&amp;op=click
_______________________________________________ Tktable-users mailing
list <a class="moz-txt-link-abbreviated" href="mailto:Tktable-users@lists.sourceforge.net"> T
ktable-users@[...].net</a> 
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/tktable-
users"> https://lists.sourceforge.net/lists/listinfo/tktable-users</a></blockquote>
</blockquote> 
</body> 
</html> 



-------------------------------------------------------
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
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