On 27/07/2022 21:06, xol odho wrote:
> So why is the behavior different? In both cases it is the same proc that is bound to the same <Enter> event, just the binding tag is different. I find this confusing. What's wrong?
The difference is that by binding to the <Enter> event in the Button
class, you overwrite the normal class binding that takes care of
highlighting the button and setting up variables needed when clicking
the button. That's why those things stop working.
If you would add your binding instead of replacing the standard binding,
it works (note the "+"):
bind Button <Enter> {+puts "Button <Enter> : %W"}
Schelte.