[interfacekit] Re: Helping out

Hi!

> >> I started looking into bug #919, which is essentially the non-working 
> >> keyboard handler for the BMenuField.  ...

The BPopupMenu of the BMenuField indeed did not have the input focus
because the window containing it had flag B_AVOID_FOCUS set. Attached is
a patch that changes that, and implements a first rudimentary input
handler (only small changes). This is definitely not the final version
and there are still problems with closing BMenus, but it's a start and I
will continue working on it. Of course, any feedback is most welcome
(since I am still a newbie to Haiku development).

Actually, I would like to refactor the Menu-related classes a bit. I
found them hard to understand. I am not sure if this is the right thing
to do, but in the long run, I would like to replace the polling
mechanism that is used for tracking by an event-driven mechanism. I
assume there are all the different kinds of mouse events in in BeOS,
such as MouseOver, maybe even Enter and Leave, yes?

Another question: I found myself adding a lot of debug_printf's to the
code in order to track the control flow. Is there an easier way?

Cheers,
Christof

Other related posts: