Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

tablelist bodytag
tablelist bodytag command returns malformed value.
instead of .tbl.body get body.tbl ( no leading "." and reverse order )
Paste from tkcon on Win98, tcl/tk 8.4.9, tablelist 3.8

(DEV) 52 % puts $tablelist::W
.tbl
(DEV) 53 % .tbl bodytag
body.tbl
(DEV) 54 % .tbl bodypath
.tbl.body
(DEV) 55 % tablelist::getTablelistPath .tbl.body
.tbl
(DEV) 56 % tablelist::getTablelistPath [.tbl bodytag]
bad window path name "body"
(DEV) 57 % tablelist::getTablelistPath [.tbl bodypath]
.tbl

This popped up as I tried to work out binding <Return> to the existing
spacebar action. Can't make it work. I am setting focus to tablelist
widget, don't understand what I am missing.

Help greatly appreciated !

Report this thread to moderator Post Follow-up to this message
Old Post
Timm Reasbeck
06-03-05 08:58 AM


Re: tablelist bodytag
"Timm Reasbeck" <timmr@atlanticbb.net> wrote in message
news:87sm009nfl.fsf@elstar.ursus.kosmos...
>
> tablelist bodytag command returns malformed value.
> instead of .tbl.body get body.tbl ( no leading "." and reverse order )

bodytag would not be the name of the widget. it would be a
a text widget tag name and would only be useful
for tag operations on that text widget.

> Paste from tkcon on Win98, tcl/tk 8.4.9, tablelist 3.8
>
> (DEV) 52 % puts $tablelist::W
> .tbl
> (DEV) 53 % .tbl bodytag
> body.tbl
> (DEV) 54 % .tbl bodypath
> .tbl.body
> (DEV) 55 % tablelist::getTablelistPath .tbl.body
> .tbl
> (DEV) 56 % tablelist::getTablelistPath [.tbl bodytag]
> bad window path name "body"
> (DEV) 57 % tablelist::getTablelistPath [.tbl bodypath]
> .tbl
>
> This popped up as I tried to work out binding <Return> to the existing
> spacebar action. Can't make it work. I am setting focus to tablelist
> widget, don't understand what I am missing.
Better to post the code your working on for the
binding change. And if you are adding onto
bindings your script must begin with '+'.

Roy
>
> Help greatly appreciated !



Report this thread to moderator Post Follow-up to this message
Old Post
Roy Terry
06-03-05 08:58 AM


Re: tablelist bodytag
Timm Reasbeck wrote:
> tablelist bodytag command returns malformed value.
> instead of .tbl.body get body.tbl ( no leading "." and reverse order )
> Paste from tkcon on Win98, tcl/tk 8.4.9, tablelist 3.8
>
> (DEV) 52 % puts $tablelist::W
> ..tbl
> (DEV) 53 % .tbl bodytag
> body.tbl
> (DEV) 54 % .tbl bodypath
> ..tbl.body
> (DEV) 55 % tablelist::getTablelistPath .tbl.body
> ..tbl
> (DEV) 56 % tablelist::getTablelistPath [.tbl bodytag]
> bad window path name "body"
> (DEV) 57 % tablelist::getTablelistPath [.tbl bodypath]
> ..tbl
>
> This popped up as I tried to work out binding <Return> to the existing
> spacebar action. Can't make it work. I am setting focus to tablelist
> widget, don't understand what I am missing.
>
> Help greatly appreciated !

The tablelist "bodytag" command returns the name of a binding tag, which
is not identical to the widget name returned by "bodypath".  This is why
your command #56 above fails (see the reference pages
"tablelistWidget.html" and "tablelistBinding.html" for details on the
helper command "tablelist::getTablelistPath").

Are you sure you have pasted everything correctly from tkcon?  I can't
imagine any situation where one of the commands #52, #54, #55, #57 would
return the string "..tbl" (they return the widget name ".tbl").

Best regards,
Csaba

--
Csaba Nemethi   http://www.nemethi.de   mailto:csaba.nemethi@t-online.de

Report this thread to moderator Post Follow-up to this message
Old Post
Csaba Nemethi
06-04-05 01:58 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Tcl archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:47 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.