#370 closed bug (fixed)
menu color and resize and Arrangement of button
Reported by: | Owned by: | jackburton | |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Preferences | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
menu color ---------------------------------
ColorWindow.cpp ColorWindow::MessageReceived(BMessage *msg)
case MENU_COLOR:
get_menu_info(&info); info.background_color = colorPicker->ValueAsColor(); set_menu_info(&info);
- be_app->PostMessage(UPDATE_WINDOW);
+ be_app->PostMessage(MENU_COLOR);
break;
MenuWindow.cpp MenuWindow::MessageReceived(BMessage *msg)
case MENU_COLOR:
- set_menu_info(&info);
+ get_menu_info(&info); + revert = true; + Update();
break;
Resize --------------------------------------
MenuWindow.cpp MenuWindow::MenuWindow(BRect rect)
- ResizeTo((menuBar->Frame().right + 35), (menuBar->Frame().bottom + 45));
+ ResizeTo((menuBar->Frame().right + 40), (menuBar->Frame().bottom + 45));
MenuBar.cpp MenuBar::FrameResized(float width, float height)
+ Window()->ResizeTo(width+80, height+55);
Arrangement of button --------------------------
MenuWindow.cpp MenuWindow::MenuWindow(BRect rect)
- defaultButton = new BButton(buttonFrame, "Default", "Defaults", new
BMessage(MENU_DEFAULT),
B_FOLLOW_LEFT | B_FOLLOW_BOTTOM, B_WILL_DRAW | B_NAVIGABLE);
+ defaultButton = new BButton(buttonFrame, "Default", "Defaults", new BMessage(MENU_DEFAULT),
B_FOLLOW_H_CENTER | B_FOLLOW_BOTTOM, B_WILL_DRAW | B_NAVIGABLE);
menuView->AddChild(defaultButton);
buttonFrame.OffsetBy(buttonFrame.Width() + 20, 0);
- revertButton = new BButton(buttonFrame, "Revert", "Revert", new
BMessage(MENU_REVERT),
B_FOLLOW_LEFT | B_FOLLOW_BOTTOM, B_WILL_DRAW | B_NAVIGABLE);
+ revertButton = new BButton(buttonFrame, "Revert", "Revert", new BMessage(MENU_REVERT),
B_FOLLOW_H_CENTER | B_FOLLOW_BOTTOM, B_WILL_DRAW | B_NAVIGABLE);
Attachments (4)
Change History (10)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
BMenuBar doesn't do SetItemMargins.
Sorry. It was InitData(). However, it is small.
comment:3 by , 19 years ago
Resolution: | → fixed |
---|
comment:5 by , 19 years ago
Status: | new → closed |
---|
BMenuBar doesn't do SetItemMargins.
MenuBar.cpp MenuBar::MenuBar()
B_ITEMS_IN_COLUMN, true) {
+ SetItemMargins(14.0, 2.0, 20.0, 0.0); }