Ch Lamprecht wrote:
Ch Lamprecht wrote:
Hello,
in the example below I find the following strange behaviour:
I set the window to a Size so that the vertical scrollbar appears.
If I try to press a Button that is child of a panel which is only
partly visible, the scrolled window jumps into a position where the
whole panel becomes visible. This happens on BUTTON_DOWN so that the
EVT_BUTTON will not be triggered because on BUTTON_RELEASE the Widget
has moved away from the Mouse Pointer. (Only the Button that has the
Focus reacts without the scrolled window jumping).
update:
I see this with 2_8_10 installed using Alien::WxWidgets on Strawberry.
It might be related to http://trac.wxwidgets.org/ticket/9563 - although
this should be fixed??
It seems it has been fixed for 2.8.11-to-be, not for 2.8.10.
Wx should scroll a partly visible Button into view when pressed. Instead
it tries to scroll the whole (parent) Panel into the vieable area of the
window.
This leads to Button callbacks not being triggered on the first click.
An installation on Linux where Alien::WxWidgets added a lot of patches
to a 2_8_7 Source tree does not show the behaviour, here the Window does
not move even if I press a Button which is only partly visible.
Maybe the bug has been introduced between 2.8.7 and 2.8.10, or it
doesn't trigger on Linux. AFAIR all the patches are build-related.
Regards,
Mattia