[haiku-development] Re: Handling mouse events with multiple BViews

  • From: James Kim <jkim202@xxxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 09 Jun 2008 11:44:56 +1200

> I am having trouble detecting mouse clicks in BView. A BViewSubclass
> which is drawn inside some BWindow is implementing MouseDown() method
> but it won't respond to mouse clicks. The reason is that BWindow
> contains other BViews covering the entire BViewSubclass. How do you make
> it so that all mouse clicks invoke BViewSubclass' MouseDown() method?
> Maybe move BViewSubclass to top layer or something like that?

Ah.. I think I just got it.. I used BView::MakeFocus() in BViewSubclass.
Sorry for that. Thanks anyway.



Other related posts: