• ↖ 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
resourceTk
← Chapter 3. Tcl- Code Generation →

Name

dumper::resourceTk

Synopsis

          resourceTk rwindow \
             rname value ?regexp?
        

Description

Create an option database entry for rname and rwindow.

Note 03/18/2008 - 11:30 : Moving to an more elaborated schema like:

Example 3.51. Alternate Resources

foreach {
id  property  pvalue } {
7   justify  center
3      padX  1
2      text  {text ...}
} {
option add *Grefcode$w($id).$property $pvalue;
}


... requires changes in vgcode.tcl, concerning resource handling. vgcode uses resources in a straight-forward fashion and this is not --yet-- suitable for moving toward the above code definition.

pro: Allows longer »values«, no repetition. Easier for cut-n-paste --no class definition. Less code.

cons: Effort! Additional abstraction layer. No evaluation for pvalue -- wont work for msgcat entries. Old scheme will be needed, too. More complex code, less performance.

Avoid using curly brace whenever possible.

Clients

resourceTk is being used by ::vgcode::getOptions, ::vgcode::dump-configure-Menu, ::vgcode::dump-hugelist-Rtl_mlistbox clients.

Example 3.52. ::vgcode::getOptions using resourceTk

...
continue
}

append _resource \
    [dumper::resourceTk  $relwidget $rname $param]
   



← ↖ →
coordszinc ↑ rfilepath
SourceForge Logo

Copyright © 2009–2010 Arndt Roger Schneider