本文整理汇总了C++中wxHelpEvent::GetId方法的典型用法代码示例。如果您正苦于以下问题:C++ wxHelpEvent::GetId方法的具体用法?C++ wxHelpEvent::GetId怎么用?C++ wxHelpEvent::GetId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wxHelpEvent
的用法示例。
在下文中一共展示了wxHelpEvent::GetId方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnContextHelp
void AssociateDialog::OnContextHelp ( wxHelpEvent& e )
{
int id = e.GetId();
if ( id == ID_URL )
new wxTipWindow (
this,
_ ( "Provides a space for you to type the path of the file" ) );
else if ( id == ID_BROWSE )
new wxTipWindow (
this,
_ ( "Opens a standard file dialog" ) );
else if ( id == ID_AUX )
new wxTipWindow (
this,
_ ( "Provides a space for you to type additional information" ) );
else if ( id == wxID_CANCEL )
new wxTipWindow (
this,
_ ( "Closes this dialog without making any changes" ) );
else if ( id == wxID_OK )
new wxTipWindow (
this,
_ ( "Selects the file specified" ) );
else
{ }
e.Skip();
}
示例2: OnContextHelp
void GlobalReplaceDialog::OnContextHelp ( wxHelpEvent& e )
{
int id = e.GetId();
if ( id == ID_FIND )
new wxTipWindow (
this,
_ ( "Provides a space for you to type the text you want to find" ) );
else if ( id == ID_REPLACE )
new wxTipWindow (
this,
_ ( "Provides a space for you to type the text you want to replace the text you typed in Find what" ) );
else if ( id == ID_MATCHCASE )
new wxTipWindow (
this,
_ ( "Finds only text with lowercase and uppercase letters as specified in Find what" ) );
else if ( id == ID_ALLDOCUMENTS )
new wxTipWindow (
this,
_ ( "Extends the scope to all open documents" ) );
else if ( id == ID_REGEX )
new wxTipWindow (
this,
_ ( "Interprets the text specified in Find what as a regular expression" ) );
else if ( id == wxID_OK )
new wxTipWindow (
this,
_ ( "Finds all instances of the text specified in Find what and replaces them with the text in Replace with" ) );
else if ( id == wxID_CANCEL )
new wxTipWindow (
this,
_ ( "Closes the dialog box without saving any changes you have made" ) );
else
{ }
e.Skip();
}
示例3: OnHelp
void CDlgPreferences::OnHelp(wxHelpEvent& event) {
wxLogTrace(wxT("Function Start/End"), wxT("CDlgPreferences::OnHelp - Function Begin"));
if (IsShown()) {
wxString strURL = wxGetApp().GetSkinManager()->GetAdvanced()->GetOrganizationHelpUrl();
wxString wxurl;
wxurl.Printf(
wxT("%s?target=simple_preferences&version=%s&controlid=%d"),
strURL.c_str(),
wxString(BOINC_VERSION_STRING, wxConvUTF8).c_str(),
event.GetId()
);
wxLaunchDefaultBrowser(wxurl);
}
wxLogTrace(wxT("Function Start/End"), wxT("CDlgPreferences::OnHelp - Function End"));
}
示例4: OnContextHelp
void MainWindow::OnContextHelp(wxHelpEvent& event) {
HelpManager::OpenHelpById((WindowIDS)event.GetId());
}