Hover Help was changed between VA 7.5 and VA 8.0. As a consequence, hover help for sliders is now broken (Exception: "EwSlider does not understand parentView").
If I add EwSlider to the special cases handled in the new method CwDrawingArea>>#associatedPart, hover help for sliders works fine again:
- Code: Select all
associatedPart
"Private - Answer the part associated with the receiver.
This is a slight hack to get around the fact that the internal structure of some parts is more complicated
than a single common widget pointing back to the part to which it belongs."
| w |
((w := self userData) isKindOf: EwNotebook)
ifTrue: [^w associatedPart ].
((w isKindOf: EwIconTree) or: [w isKindOf: EwIconList])
ifTrue: [^w associatedPart].
(w isKindOf: EwIconArea)
ifTrue: [^w associatedPart].
(w isKindOf: EwTableList)
ifTrue: [^w associatedPart].
"=== added by Christoph ==="
(w isKindOf: EwSlider)
ifTrue: [^w associatedPart].
"=== added by Christoph ==="
^super associatedPart
Please include this fix in the next VA version.
BTW, couldn't this be done in a slightly less ugly way? Maybe something like
- Code: Select all
associatedPart
| w |
w := self userData.
^w class needsDrawingAreaHoverHelpHack
ifTrue: [ w associatedPart ]
ifFalse: [ super associatedPart ].
?
Thanks and best regards,
Christoph