rem: WMAddNotificationObserver(resizedWindow, box, WMViewSizeDidChangeNotification, WMWidgetView(win)); WMResizeWidget(win, 400, 300);
add: WMSetViewExpandsToParent(WMWidgetView(box), 0, 0, 0, 0);
context: testBox(WMScreen *scr){    WMWindow *win;    WMBox *box, *hbox;    WMButton *btn;    WMPopUpButton *pop;    int i;    windowCount++;    win = WMCreateWindow(scr, "testBox");    WMSetWindowTitle(win, "Box");    WMSetWindowCloseAction(win, closeAction, NULL);    WMSetViewNotifySizeChanges(WMWidgetView(win), True);    box = WMCreateBox(win);    WMSetBoxBorderWidth(box, 5);        WMAddNotificationObserver(resizedWindow, box,			      WMViewSizeDidChangeNotification, 			      WMWidgetView(win));    WMResizeWidget(win, 400, 300);    /*    WMSetBoxHorizontal(box, True); */    for (i = 0; i < 4; i++) {	btn = WMCreateCommandButton(box);	WMSetButtonText(btn, "bla");	WMMapWidget(btn);	WMAddBoxSubview(box, WMWidgetView(btn), i&1, True, 20, 0, 5);    }        pop = WMCreatePopUpButton(box);    WMAddPopUpButtonItem(pop, "ewqeq");    WMAddPopUpButtonItem(pop, "ewqeqrewrw");    WMAddBoxSubview(box, WMWidgetView(pop), False, True, 20, 0, 5);    WMMapWidget(pop);        hbox = WMCreateBox(box);    WMSetBoxHorizontal(hbox, True);    WMAddBoxSubview(box, WMWidgetView(hbox), False, True, 24, 0, 0);    WMMapWidget(hbox);     for (i = 0; i < 4; i++) {	btn = WMCreateCommandButton(hbox);	WMSetButtonText(btn, "bla");	WMMapWidget(btn);	WMAddBoxSubview(hbox, WMWidgetView(btn), 1, True, 60, 0, i<3?5:0);    }             WMRealizeWidget(win);    WMMapSubwidgets(win);    WMMapWidget(win);}