wxControl Raise/Lower
Stéphane Gros
gros.stephane at gmail.com
Wed May 21 08:16:36 PDT 2008
Hello everyone !
I have been following the wxUsers list for some time, but never posted yet.
I have encountered some problems with the Raise/Lower behaviour in my
wxWidget development.
I've simplified the problem to this :
- If I create three wxButtons that partially overlay one over the others,
and that I use the Raise method, everything works fine.
- If I create three wxControls (or any other custom class I have made based
on wxControl), that partially overlay one over the others, and that I use
the Raise method, from a displaying point of view the behaviour is inverted
: Raise lowers my wxControl and Lower raises it. That is to say that the
last wxControl I have Raised is displayed under all the others. Moreover,
for mouse events, the behaviour is not inverted ! The last wxControl I've
Raised (which is displayed under the others) catches the event first.
Maybe I have missed something in the definition of my custom classes, but
the same problems occurs with wxControl.
I've rechecked the tutorials but have not found where it could come from.
Thanks a lot for your help
and sorry about my poor english
St=E9phane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20080521/a3d=
1f3d2/attachment.htm
More information about the wx-users
mailing list