本文整理汇总了C++中wxUpdateUIEvent::Enable方法的典型用法代码示例。如果您正苦于以下问题:C++ wxUpdateUIEvent::Enable方法的具体用法?C++ wxUpdateUIEvent::Enable怎么用?C++ wxUpdateUIEvent::Enable使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wxUpdateUIEvent
的用法示例。
在下文中一共展示了wxUpdateUIEvent::Enable方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnRecentFileUI
void WelcomePage::OnRecentFileUI(wxUpdateUIEvent& event)
{
wxArrayString files;
clMainFrame::Get()->GetMainBook()->GetRecentlyOpenedFiles(files);
event.Enable(!files.IsEmpty());
}
示例2: OnSPINCTRLUpdate
void KinectTestMainFrame::OnSPINCTRLUpdate( wxUpdateUIEvent& event )
{
event.Enable(m_SendToGatewayCheckBox->IsChecked());
}
示例3: OnEnableIfNetplayNotRunning
void OnEnableIfNetplayNotRunning(wxUpdateUIEvent& event)
{
event.Enable(!NetPlay::IsNetPlayRunning());
}
示例4: OnGRABBERSTARTUpdate
void KinectTestMainFrame::OnGRABBERSTARTUpdate( wxUpdateUIEvent& event )
{
event.Enable(m_SelectedDeviceIndex >= 0 && (!m_Grabber || !m_Grabber->IsStarted()));
}
示例5: OnEnableIfCoreNotRunning
void OnEnableIfCoreNotRunning(wxUpdateUIEvent& event)
{
event.Enable(!Core::IsRunning());
}
示例6: OnEnableIfCoreRunningOrPaused
void OnEnableIfCoreRunningOrPaused(wxUpdateUIEvent& event)
{
const auto state = Core::GetState();
event.Enable(state == Core::State::Running || state == Core::State::Paused);
}
示例7: OnUpdateSelectAll
void wxComboBox::OnUpdateSelectAll(wxUpdateUIEvent& event)
{
event.Enable(GetLastPosition() > 0);
}
示例8: OnConnectUI
void SFTPTreeView::OnConnectUI(wxUpdateUIEvent& event)
{
event.Enable(!m_choiceAccount->GetStringSelection().IsEmpty() && !m_sftp);
}
示例9: OnUpdateRedo
void wxComboBox::OnUpdateRedo(wxUpdateUIEvent& event)
{
event.Enable( CanRedo() );
}
示例10: OnUpdateDelete
void wxComboBox::OnUpdateDelete(wxUpdateUIEvent& event)
{
event.Enable(HasSelection() && IsEditable()) ;
}
示例11: OnUpdatePaste
void wxComboBox::OnUpdatePaste(wxUpdateUIEvent& event)
{
event.Enable( CanPaste() );
}
示例12: OnUpdateCopy
void wxComboBox::OnUpdateCopy(wxUpdateUIEvent& event)
{
event.Enable( CanCopy() );
}
示例13: OnRecentProjectUI
void WelcomePage::OnRecentProjectUI(wxUpdateUIEvent& event)
{
wxArrayString files;
ManagerST::Get()->GetRecentlyOpenedWorkspaces(files);
event.Enable(!files.IsEmpty());
}
示例14: OnUpdateRedo
void wxTextCtrl::OnUpdateRedo(wxUpdateUIEvent& event)
{
event.Enable( CanRedo() );
}
示例15: OnDisconnectUI
void SFTPTreeView::OnDisconnectUI(wxUpdateUIEvent& event) { event.Enable(m_sftp); }