Hi Ingo,
while coding the rpotmeter, I came across the following:
1)
When rendering the [hv]potmeter, the button width/height is regarded, so that
the button doesn't exceed the potmeter edges. However, the counterpart in the
mouse handling doesn't do the exact inverse calculation. The button is drifting
under the mouse pointer from its one edge to its other when moving it from one
end of the potmeter to the other. Only in the middle of the pot, the button is
centered under the mouse.
The attached 'potmeter_button_adjust.patch' corrects the mouse calculations to
keep the button always centered under the mouse (like one might expect). The
coming rpotmeter button will have the same behaviour (inherent by design).
2)
The WIN32 GUI checks that the rendered potmeter button doesn't exceed the
bounds. This seems not necessary as the item value is already limited. The GTK
GUI doesn't do this check neither.
The attached 'potmeter_button_cleanup.patch' removes those checks, simplifying
the code.
Hans-Dieter