FIX: print-error dialog: hide cancel button, fix msg display

Change-Id: I26fe098cedd16ee568060f12bb5aea855e9ae279
This commit is contained in:
tao.jin
2022-10-14 15:19:55 +08:00
committed by Lane.Wei
parent 508f814bbc
commit a0e273fd06
3 changed files with 19 additions and 5 deletions

View File

@@ -27,9 +27,16 @@ private:
void on_dpi_changed(const wxRect& suggested_rect) override;
public:
enum ButtonStyle {
ONLY_CONFIRM = 0,
CONFIRM_AND_CANCEL = 1,
MAX_STYLE_NUM = 2
};
ConfirmHintDialog(wxWindow* parent,
wxWindowID id = wxID_ANY,
const wxString& title = wxEmptyString,
enum ButtonStyle btn_style = CONFIRM_AND_CANCEL,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxCLOSE_BOX | wxCAPTION);