本文整理汇总了C++中wxTextCtrl::Enable方法的典型用法代码示例。如果您正苦于以下问题:C++ wxTextCtrl::Enable方法的具体用法?C++ wxTextCtrl::Enable怎么用?C++ wxTextCtrl::Enable使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wxTextCtrl
的用法示例。
在下文中一共展示了wxTextCtrl::Enable方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: onPlistCheckboxPressed
void onPlistCheckboxPressed(wxCommandEvent& evt)
{
const bool on = m_info_plist_cb->IsChecked();
m_get_info_string->Enable(on);
m_version->Enable(on);
m_icon_file->Enable(on);
m_identifier->Enable(on);
m_signature->Enable(on);
}
示例2: wxDialog
RunConfigDialog(wxWindow* parent, string title, string name, string params, bool custom = true) : wxDialog(parent, -1, title)
{
// Setup sizer
wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL);
SetSizer(sizer);
wxGridBagSizer* gb_sizer = new wxGridBagSizer(8, 4);
sizer->Add(gb_sizer, 1, wxEXPAND|wxALL, 10);
// Config name
gb_sizer->Add(new wxStaticText(this, -1, "Config Name:"), wxGBPosition(0, 0), wxDefaultSpan, wxALIGN_CENTER_VERTICAL);
text_name = new wxTextCtrl(this, -1, name);
text_name->Enable(custom);
gb_sizer->Add(text_name, wxGBPosition(0, 1), wxDefaultSpan, wxEXPAND);
// Config params
gb_sizer->Add(new wxStaticText(this, -1, "Parameters:"), wxGBPosition(1, 0), wxDefaultSpan, wxALIGN_CENTER_VERTICAL);
text_params = new wxTextCtrl(this, -1, params);
gb_sizer->Add(text_params, wxGBPosition(1, 1), wxDefaultSpan, wxEXPAND);
wxStaticText* label_help = new wxStaticText(this, -1, "");
gb_sizer->Add(label_help, wxGBPosition(2, 0), wxGBSpan(1, 2), wxEXPAND);
gb_sizer->Add(CreateStdDialogButtonSizer(wxOK|wxCANCEL), wxGBPosition(3, 0), wxGBSpan(1, 2), wxALIGN_RIGHT);
gb_sizer->AddGrowableCol(1);
gb_sizer->AddGrowableRow(2);
label_help->SetLabel("%i - Base resource archive\n%r - Resource archive(s)\n%a - Current archive\n%mn - Map name\n%mw - Map number (eg. E1M1 = 1 1, MAP02 = 02)");
label_help->Wrap(300);
text_params->SetInsertionPoint(0);
}
示例3: Change
void CfgPanel::Change()
{
wxString c = channel->GetStringSelection();
wxString l = logger->GetStringSelection();
filename->Enable(LogManager::Get()->FilenameRequired(l));
if (l.at(0) == _T('<')) // "<application default>"
l.Empty();
// blah... do something, update the maps according to what is selected
}
示例4:
void enable() override {
x_textctrl->Enable();
y_textctrl->Enable(); };