wxChoice & wxComboBox

Perhaps you could just do something similar to but simpler than IsMouseInWindow. Just get the mouse position in screen coordinants, and compare that to the screen coordinants and size of the panel or frame you are working with?

Thank you Robin, for opening my eyes. I was stuck into the IsMouseInWindow() approach... Indeed your solution should be simpler.

Kind regards,

Cristina.

···

-------------------------------------------------------
Xnet scaneaza automat toate mesajele impotriva virusilor folosind RAV AntiVirus.
Xnet automatically scans all messages for viruses using RAV AntiVirus.

Nota: RAV AntiVirus poate sa nu detecteze toti virusii noi sau toate variantele lor.
Va rugam sa luati in considerare ca exista un risc de fiecare data cand deschideti
fisiere atasate si ca MobiFon nu este responsabila pentru nici un prejudiciu cauzat
de virusi.

Disclaimer: RAV AntiVirus may not be able to detect all new viruses and variants.
Please be aware that there is a risk involved whenever opening e-mail attachments
to your computer and that MobiFon is not responsible for any damages caused by
viruses.