[haiku-development] Re: Layout and events
- From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Tue, 15 Sep 2015 09:47:02 +0200
Am 15/09/2015 um 07:38 schrieb looncraz:
Is there any reason why a BView constructed using the simplified
layout-related constructor does not receive normal events?
For example, a BView (or BBox or whatever) constructed as follows will
not receive any frame events:
BView* view = new BView("NAME", B_FRAME_EVENTS | B_WILL_DRAW);
view->SetResizingMode(B_FOLLOW_ALL);
...
Not sure if I understand you correctly, but you are mixing layout and
non layout aware code here -- there resizing mode has no meaning in
layout code, and will be ignored (if it's being resized in the
app_server, that would be a bug, too).
The parent layout is responsible for resizing your component.
Bye,
Axel.
Other related posts: