• ↖ Home
  • Developer´s Guide
    • ↑ Contents
    • Code
    • Embedding
    • Tcl
    • SVG
    • SVG-Import
    • Projects
    • License
    • Index
  • Download
    • Jeszra: Source Code

    • Ruby Wrapper Classes
    • Python Wrapper Classes
    • Lisp Wrapper Classes
  • Books@Lulu.com...
    • Jeszra: Design by Gestalt
    • Jeszra Library: Design by Gestalt

    • Gestalt Items
    • Runtime Library
  • Manual
    • Jeszra Book

    • Tcl Manual
    • Ruby Manual
    • Python Manual
    • Lisp Manual

    • API
  • About
relativeparent
← Chapter 3. Tcl- Code Generation →

Name

dumper::relativeparent

Synopsis

          relativeparent target \
             dots
        

Description

Provides a relative addressing scheme to target using multiple (recursive) calls to winfo parent.

NOTE : This code should not being used at all. target isn't a child of base, the common ancestor is searched for base & target (using winfo parent) and then returned to the caller. NOTE : This code does indeed work! result contains subsequent calls to winfo parent ... which will then being used on base. Example:

[winfo parent [winfo parent [winfo parent $base]]]

--Still curious, though!

Added »target«, to allow cross-examination, needed for Jeszra.

Clients

relativeparent is being used by ::dumper::relativeparent.

relativeparent is being used by ::vgcode::baseName clients.

Example 3.62. ::vgcode::baseName using relativeparent

...

debug stdout "dump path ... "

return \
    [dumper::relativeparent $target  \
    [expr {$dotsBase - $dotsTarg}]]
   



← ↖ →
zincNew ↑ styleTkPathNew
SourceForge Logo

Copyright © 2009–2010 Arndt Roger Schneider