Unable to use mouse in wxListBook pages (wxMSW-2.8.11)

10 views
Skip to first unread message

Joachim Bürmann

unread,
Jul 8, 2011, 11:20:04 AM7/8/11
to wx-u...@googlegroups.com
Hi all,

I have a strange problem with the wxListbook.

I created a dialog with a wxListbook inside and put two simple pages
(wxPanel) in it, each one contains only a single button.

I can select both pages and the contents (buttons) are drawing fine.

Within Linux (wxGTK-2.8.11) all work as expected but within windows I
cannot click the button. Selection via keyboard works fine, means: I can
focus the button by pressing the TAB key. But as soon as I try to click
the button, the focus is lost.

Also moving the mouse over the button doesn't never change it states,
where I expect a mouse over button state.

I tried the notebook sample and it run fine on windows too so I guess I
missed something. The notebook example puts the wxNotebook/Listbook
directly in the wxFrame. In my program, the wxListbook is inside a
wxDialog, perhaps this makes the difference???

It seems like something else 'eats' all mouse events inside the pages.
Before I try to investigate this more deeper I just like to know if
someone else has seen this before - and perhaps has a nice hint to save
my Friday afternoon.

Best regards and thx in advance

Joachim

Reply all
Reply to author
Forward
0 new messages