Lines Matching refs:menu
2874 // see if source was a menu item
4390 BPopUpMenu* menu = new BPopUpMenu("create clipping");
4391 menu->SetFont(be_plain_font);
4426 menu->AddItem(new BMenuItem(labelText.String(), 0));
4429 menu->AddSeparatorItem();
4430 menu->AddItem(new BMenuItem(B_TRANSLATE("Cancel"), 0));
4433 BMenuItem* resultingItem = menu->Go(where, false, true);
4435 int32 index = menu->IndexOf(resultingItem);
4440 delete menu;
4542 // fish for specification of specialized menu items
4577 // if control down, run a popup menu
4613 // we had the user pick a specific type from a menu, use it
4624 // we had the user pick a specific type from a menu, use it
4687 // user canceled context menu
5026 // user canceled context menu
7449 // show desktop context menu
7485 // Showing the pose context menu is done on mouse up (or long click)
9897 BPoseView::MenuTrackingHook(BMenu* menu, void*)
9899 // return true if the menu should go away
9900 if (!menu->LockLooper())
9905 menu->GetMouse(&location, &buttons);
9911 BRect bounds(menu->Bounds());
9914 // still in menu
9919 menu->ConvertToScreen(&location);
9920 int32 poseCount = menu->CountItems();
9922 // iterate through all of the items in the menu
9924 BMenuItem* item = menu->ItemAt(index);
9937 // only one menu can have its window open bail now
9946 menu->UnlockLooper();