(svn r24731) -Codechange: Remove OnOpenOSKWindow and instead specify OK and CANCEL buttons via QueryString members.
This commit is contained in:
@@ -2123,6 +2123,8 @@ struct NetworkCompanyPasswordWindow : public QueryStringBaseWindow {
|
||||
this->InitNested(desc, 0);
|
||||
|
||||
this->parent = parent;
|
||||
this->cancel_button = WID_NCP_CANCEL;
|
||||
this->ok_button = WID_NCP_OK;
|
||||
this->afilter = CS_ALPHANUMERAL;
|
||||
this->text.Initialize(this->edit_str_buf, this->edit_str_size);
|
||||
this->SetFocusedWidget(WID_NCP_PASSWORD);
|
||||
@@ -2171,11 +2173,6 @@ struct NetworkCompanyPasswordWindow : public QueryStringBaseWindow {
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
virtual void OnOpenOSKWindow(int wid)
|
||||
{
|
||||
ShowOnScreenKeyboard(this, wid, WID_NCP_CANCEL, WID_NCP_OK);
|
||||
}
|
||||
};
|
||||
|
||||
static const NWidgetPart _nested_network_company_password_window_widgets[] = {
|
||||
|
Reference in New Issue
Block a user