Lines Matching refs:item
93 // change item state
102 // normal menu item
128 wxT("checkable menu item must be a toggle button") );
171 // Id=-3 identifies a Title item.
182 wxASSERT_MSG(wxIsStockID(GetId()), wxT("A non-stock menu item with an empty label?"));
346 wxMenuItem *item = (wxMenuItem *) clientData;
347 if (item)
349 wxCommandEvent event(wxEVT_COMMAND_MENU_SELECTED, item->GetId());
350 event.SetInt( item->GetId() );
352 if (item->IsCheckable())
355 XtVaGetValues ((Widget) item->GetButtonWidget(),
360 item->wxMenuItemBase::Check(isChecked);
364 if (item->GetMenuBar() && item->GetMenuBar()->GetMenuBarFrame())
366 event.SetEventObject(item->GetMenuBar()->GetMenuBarFrame());
368 item->GetMenuBar()->GetMenuBarFrame()
372 else if (item->GetTopMenu())
374 event.SetEventObject(item->GetTopMenu());
376 item->GetTopMenu()->ProcessCommand (event);
382 // a WorkProc as before may cause crashes if a menu item causes
384 item->GetTopMenu()->DestroyWidgetAndDetach();
392 wxMenuItem *item = (wxMenuItem *) clientData;
393 if (item)
395 if (item->GetMenuBar() && item->GetMenuBar()->GetMenuBarFrame())
397 wxMenuEvent menuEvent(wxEVT_MENU_HIGHLIGHT, item->GetId());
398 menuEvent.SetEventObject(item->GetMenuBar()->GetMenuBarFrame());
400 item->GetMenuBar()->GetMenuBarFrame()
410 wxMenuItem *item = (wxMenuItem *) clientData;
411 if (item)
413 if (item->GetMenuBar() && item->GetMenuBar()->GetMenuBarFrame())
418 menuEvent.SetEventObject(item->GetMenuBar()->GetMenuBarFrame());
420 item->GetMenuBar()->GetMenuBarFrame()