Hum... I see.
So in your command, you have something like:
bind .top22.mycanvas <Button1> {... %W ...}
I see a few ways to fix this. One way is to have your -command option call a
procedure
that sets the canvas binding.
One other way is for me to change %W to something else or to allow double %
like %%W.
I like the %W stuff in -command options because it makes multiple instances of
windows easier.
Another way is to define binding tags in the bindings editor and to
enable/disable
these bindings by using the bindtags command.
CG
Stef Pillaert wrote:
> I see that in the CVS, %W can be used now for substituting the button-name in
> the button-command.
> However, I have a few buttons, where in the command I start some bindings
> (e.g. for a canvas), and in defining those bindings I use %W (where I want it
> to be replaced by the canvas-name off course, not the button-name!). So
> obviously I have some conflicts now :-(
> Question: is my coding style bad? Or is this new feature not really desirable?
>
> Thanks,
> Stef.
>
> --
> ==============================================================
> Stef Pillaert
> Brusselse steenweg
> B9090 Melle (Belgium-Europe)
>
> Phone: (00) 32 / (0) 9 / 252 20 51
> E-mail: [EMAIL PROTECTED]
>
> _______________________________________________
> vtcl-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/vtcl-user
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/vtcl-user