(Sorry to continue my own posting...)
I think I can reproduce the errors now:
I make a toplevel window, add a menu (with 2 cascade, with each having a few
commands in them). I save the project, it runs perfectly using wish.
Then (in vtcl) I change the menu a bit, e.g. I add a command in one of the
cascades. I select, in the widget tree, the cascade menu, and I hit "click
to edit" in the Attribute editor window. Saving again, and running the project
in wish, gives the following:

Error in startup script: can't use placer on top-level window ".top34.m35"; use wm 
command instead
    while executing
"place $base.m35  -x 0 -y 0 -anchor nw "
    (procedure "vTclWindow.top34" line 27)
    invoked from within
"vTclWindow.top34 .top34 "
    ("eval" body line 1)
    invoked from within
"eval "vTclWindow$name $newname $rest""
    ("show" arm line 7)
    invoked from within
"switch $cmd {
        show {
            if {$exists == "1" && $name != "."} {wm deiconify $name; return}
            if {[info procs vTclWindow(pre)$..."
    (procedure "Window" line 12)
    invoked from within
"Window show .top34"
    (file "test.tcl" line 391)

It seems that, when I select the top-window, and then I "ckick to edit" the
menu (going down the cascades by double-clicking them), the problem doesn't
appear. Does this mean I shouldn't "click to edit" menus, unless I start from
the toplevel?

Thanks,

Stef.


 ----------  Doorgezonden boodschap  ---------- Subject:
Menu problems Date: Wed, 20 Sep 2000 10:35:48 +0200
From: Stef Pillaert <[EMAIL PROTECTED]>


Hello,

I'm trying to use menu's in vtcl. It seemed to work well, I think I understand
how it works, but all of a sudden, I had a problem:
When I was editing menus, vtcl suddenly created a menu on
toplevel (".m37"). I couldn't show this menu, but it was shown in the widget
tree, strangely connected to other menu's with a line. I
managed to delete it, by using the vtcl "delete" (in the edit menu). It
disappeared from the widget tree, but the tree still looks strange. When I save
the project, and reopen it, I get messages like 'Can't use placer....,
use wm instead" (or something similar). Also, the menus I allready created
(the good ones) seem to be lost (allthough I still see them in the widget
tree...)

These kind of problems happened to me twice, but now I'm trying to reproduce
them, and I don't succeed (of course!). So I can't tell you what I did exactly
to have these problems. Anyone an idea what I could have done wrong?

Thanks,

Stef
P.S. thanks for the previous help to my posting. I'm learning a lot....(I
think)
-------------------------------------------------------
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/vtcl-user

Reply via email to