Bind in Snit megawidgets



Hi there!

I'm trying to bind a event of a Snit megawidget. I call it Xtext and
it is a wrapper around [text] widget. I'd like to bind all Xtext of
the application. I'm trying:

bind Xtext <Button-3> {puts something}

But this doesn't work. The following, thought, works:

bind Text <Button-3> {puts something}

But it is unwanted, since it bypass all nice wrapper I made around
[text] that I wanted to use. It seems that new classes that snit
creates don't work well for binds.

Any tips?

Thank you.
.



Relevant Pages

  • Re: Bind in Snit megawidgets
    ... I'm trying to bind a event of a Snit megawidget. ... I'd like to bind all Xtext of ... since it bypass all nice wrapper I made around ... The text widget you're wrapping is still a widget; ...
    (comp.lang.tcl)
  • Re: Binding to INotifyCollectionChanged event
    ... I've implemented a wrapper around a Dictionary that ... implements INotifyCollectionChanged to fire the event when items are ... event after I bind to it which I expected the SetBinding to do as I ... It's the binding that ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Linux free port allocation algorithm
    ... Preload a library that changes the 'bind' wrapper so that a 'bind' ... with a port of zero uses a port that you select using whatever ...
    (comp.os.linux.networking)