Hi!

I'm having problems with my GUI since I switched some of my buttons to
disabled state. After I enabled them again, they remained disabled and 
in the code see:

Code fragment #1;

            -visible {
                if {[catch {
                    if {$value} {
                        set options($id:-visible) 1
->                      $widgets(text) configure -state normal
                        $widgets(text) window configure 1.$index -window
$frame
->                      $widgets(text) configure -state disabled

                    } else {
                        set options($id:-visible) 0
->                      $widgets(text) configure -state normal
                        $widgets(text) window configure 1.$index -window
{}
->                      $widgets(text) configure -state disabled
                    }
                    InvalidateScrollbars $w
                } msg]} {
                    return -code error "expected boolean but got
\"$value\""
                }

            }

There is the ... configure -state command twice. But removing one of
them dodn't helped I gues :( So all I have to do after some work and
saving is to remake the whole GUI part from the beginning :( (remove all
affected buttons and recreate them again) It happens sometimes,
sometimes not, I didn't find out the circumstances yet. 

When browsing the generated code I found another interesting think:

Code fragment #2;

::iwidgets::scrolledlistbox $site_3_0.scr67 \
        -elementborderwidth 1 -hscrollmode dynamic -labelfont {{Tahoma}
10} \
        -textfont {{Courier} 8} -visibleitems 10x10 
    vTcl:DefineAlias "$site_3_0.scr67" "Scrolledlistbox1"
vTcl:WidgetProc "Toplevel1" 1
    bindtags $site_3_0.scr67
"{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{itk-delete-.top67.fra70.scr67
.top67.fra70.scr67 Scrolledlistbox .top67
all}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}"
    ::iwidgets::optionmenu $site_3_0.opt67 \

Are all this { and } reallly necessary?

I like vTcl very much, it's much better now than the first versions :o)
However in the previous version I had no such buttons problem, but one
with saving instead (incorrect save or something, I wasn't able to
reload my work)...

Thank you,

Peter Hunčár
ŠCCh FChPT STU





-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user

Reply via email to