|
From: Schelte B. <sb...@wa...> - 2007-10-30 21:11:57
|
I'm trying to create a scrollbar with a grip in the middle of
the thumb element. It looks exactly like I want when I do:
ttk::style layout Vertical.TScrollbar {
Vertical.Scrollbar.uparrow -side top -sticky {}
Vertical.Scrollbar.downarrow -side bottom -sticky {}
Vertical.Scrollbar.trough -sticky ns -children {
Vertical.Scrollbar.thumb -expand 1 -sticky nswe -children {
Vertical.Scrollbar.grip -sticky {}
}
}
}
The problem however is that the grip part of the thumb does not
respond to thumb events, like dragging it with the mouse. Is
there any way of applying the thumb bindings to the grip as
well (something similar to bindtags)?
I don't know anything about the inner workings of the code that
builds the widgets, but would it cause problems in any area if
children would not mask the bindings of their parents (or would
inherit their bindings)? I think such a feature would (or could
be used to) solve the problem reported in bug #1574874 too.
Schelte.
|