Brian T Hills wrote:
> 
> > - vtcl creates the following proc:
> >
> > proc vTclWindow. {base} {
> >     if {$base == ""} {
> >         set base .
> >     }
> >     ###################
> >     # CREATING WIDGETS
> >     ###################
> >     ###################
> >     # SETTING GEOMETRY
> >     ###################
> >     place $base \
> >         -x 0 -y 0 -anchor nw
> > }
> > This brings up a tcl error when the script is running:
> > << can't use placer on top-level window "."; use wm command instead
> >    while executing
> >    "place $base -x 0 -y 0 -anchor nw "
> >    ....
> > >>
> >
> >
> > Regards, Rudolf
> 
> I've had this error a couple of times and looked at procedures for other
> windows to see any differences.  When 'creating widgets' code is generated
> make sure that wm commands are specified giving dimensions of the window etc,
> If this info wasn't specified, then Vtcl would not know the properties
> of the window. e.g. specify:
> wm focusmodel $base passive
> wm geometry $base <dimensions>
> wm title $base <name> etc.....
> This info should be generated from the the settings you create in the
> geometry part of the Attribute Editor for toplevel windows.
> 
> I suggest the above as this was the solution I used for similar errors,
> you would need an 'expert' to verify this as I've only been using
> vtcl for a short time.
> 
> Regards,
> Brian Hills
> 
> Computing Science Department,
> University of Aberdeen,
> Scotland,
> UK.
> ---------------------------------------------------------------------------
> To unsubscribe from the Visual Tcl mailing list, please send a message
> to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
> message body (where [EMAIL PROTECTED] is your e-mail address).

hello TCLions,
        I agree that it will give you a error. But when will this code will be
generated? when you ask for a new file, It creates a toplevel and
corresponding widgets will be created automatically.

-- 
Girish B Hampali  Processor System (India) Pvt Ltd  Bangalore-25
E-mails: [EMAIL PROTECTED]  [EMAIL PROTECTED] 
[EMAIL PROTECTED]
Phones :91-80-2273090   91-80-2244883
TO DO WHAT YOU LIKE IS FREEDOM,TO LIKE WHAT YOU DO IS HAPPINESS,ENJOY
FREEDOM, GET HAPPINESS
---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).

Reply via email to