MCPcopy Create free account
hub / github.com/audacity/audacity / SetFocus

Method SetFocus

src/PluginDataViewCtrl.cpp:630–660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628}
629
630void PluginDataViewCtrl::SetFocus()
631{
632 if(!GetCurrentItem().IsOk())
633 {
634 wxDataViewItemArray sel;
635 sel.push_back(GetItemByRow(0));
636 if(sel[0].IsOk())
637 {
638 SetCurrentItem(sel[0]);
639 SetSelections(sel);
640 }
641 }
642 wxDataViewCtrl::SetFocus();
643#if wxUSE_ACCESSIBILITY
644 if(GetCurrentItem().IsOk())
645 {
646 wxAccessible::NotifyEvent(
647 wxACC_EVENT_OBJECT_FOCUS,
648 this,
649 wxOBJID_CLIENT,
650 GetRowByItem(GetCurrentItem()) + 1
651 );
652 wxAccessible::NotifyEvent(
653 wxACC_EVENT_OBJECT_SELECTIONWITHIN,
654 this,
655 wxOBJID_CLIENT,
656 wxACC_SELF
657 );
658 }
659#endif
660}
661#endif
662

Callers 15

OnRefreshCompletedMethod · 0.45
OnRefreshCompletedMethod · 0.45
LinkWithTokenDialogMethod · 0.45
SignInMethod · 0.45
LayoutControlsMethod · 0.45
OnAutoWrapMethod · 0.45
UpdateDisplayMethod · 0.45
OnSetFocusMethod · 0.45
OnActivateMethod · 0.45

Calls 3

SetFocusFunction · 0.85
IsOkMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected