[interfacekit] Re: Helping out
- From: Christof Lutteroth <lutteroth@xxxxxxxxxxxxxxxxx>
- To: interfacekit@xxxxxxxxxxxxx
- Date: Tue, 07 Aug 2007 20:46:24 +1200
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
- Follow-Ups:
- [interfacekit] Re: Helping out
- From: Stefano Ceccherini
- References:
- [interfacekit] Helping out
- From: Christof Lutteroth
- [interfacekit] Re: Helping out
- From: Stephan Assmus
- [interfacekit] Re: Helping out
- From: Christof Lutteroth
Other related posts:
- » [interfacekit] Helping out
- » [interfacekit] Re: Helping out
- » [interfacekit] Re: Helping out
- » [interfacekit] Re: Helping out
- » [interfacekit] Re: Helping out
- » [interfacekit] Re: Helping out
- » [interfacekit] Re: Helping out
- » [interfacekit] Re: Helping out
- » [interfacekit] Re: Helping out
- » [interfacekit] Re: Helping out
- » [interfacekit] Re: Helping out
- » [interfacekit] Re: Helping out
- » [interfacekit] Re: Helping out
- » [interfacekit] Re: Helping out
- [interfacekit] Re: Helping out
- From: Stefano Ceccherini
- [interfacekit] Helping out
- From: Christof Lutteroth
- [interfacekit] Re: Helping out
- From: Stephan Assmus
- [interfacekit] Re: Helping out
- From: Christof Lutteroth