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.