I'm trying to run a program that creates a notebook with tabs and can't get past an error that says "Bad screen distance #AEAEB2B2C3C3" I don't understand what it means.
The error comes at "switch -- $tag" can anyone help?
proc Rnotebook:create {w args} {
global Rnotebook tcl_platform
frame $w -borderwidth 0 -relief flat
set Rnotebook($w,ntab) 1
set Rnotebook($w,tabs) {1}
set Rnotebook($w,current) 0
set Rnotebook($w,theight) 30
set Rnotebook($w,padx) 0
set Rnotebook($w,bwidth) 2
set Rnotebook($w,background) [$w cget -background]
set Rnotebook($w,foreground) black
foreach {tag value} $args {
switch -- $tag {
-borderwidth {
set Rnotebook($w,bwidth) $value
}
-height {
set Rnotebook($w,theight) $value
}
-tabs {
set Rnotebook($w,tabs) $value
set Rnotebook($w,nbtab) [llength $value]
}
-nbtab {
set Rnotebook($w,nbtab) $value
}
-padx {
set Rnotebook($w,padx) $value
}
-background {
set Rnotebook($w,background) $value
}
-foreground {
set Rnotebook($w,foreground) $value
}
}
}
The error comes at "switch -- $tag" can anyone help?
proc Rnotebook:create {w args} {
global Rnotebook tcl_platform
frame $w -borderwidth 0 -relief flat
set Rnotebook($w,ntab) 1
set Rnotebook($w,tabs) {1}
set Rnotebook($w,current) 0
set Rnotebook($w,theight) 30
set Rnotebook($w,padx) 0
set Rnotebook($w,bwidth) 2
set Rnotebook($w,background) [$w cget -background]
set Rnotebook($w,foreground) black
foreach {tag value} $args {
switch -- $tag {
-borderwidth {
set Rnotebook($w,bwidth) $value
}
-height {
set Rnotebook($w,theight) $value
}
-tabs {
set Rnotebook($w,tabs) $value
set Rnotebook($w,nbtab) [llength $value]
}
-nbtab {
set Rnotebook($w,nbtab) $value
}
-padx {
set Rnotebook($w,padx) $value
}
-background {
set Rnotebook($w,background) $value
}
-foreground {
set Rnotebook($w,foreground) $value
}
}
}