MSW specific: Fixed a typo caused ignoring ENTER for TextControls in Settings Tabs

+ Added Info icon for MessageDialog
This commit is contained in:
YuSanka 2021-08-10 15:08:04 +02:00
parent 60a818852e
commit ad60227449
3 changed files with 73 additions and 2 deletions

View file

@ -500,7 +500,7 @@ void TextCtrl::BUILD() {
temp->SetToolTip(get_tooltip_text(text_value));
if (style == wxTE_PROCESS_ENTER) {
if (style & wxTE_PROCESS_ENTER) {
temp->Bind(wxEVT_TEXT_ENTER, ([this, temp](wxEvent& e)
{
#if !defined(__WXGTK__)

View file

@ -127,7 +127,7 @@ static void add_msg_content(wxWindow* parent, wxBoxSizer* content_sizer, wxStrin
else {
wxClientDC dc(parent);
wxSize msg_sz = dc.GetMultiLineTextExtent(msg);
page_size = wxSize(std::min(msg_sz.GetX() + em, 68 * em),
page_size = wxSize(std::min(msg_sz.GetX() + 2 * em, 68 * em),
std::min(msg_sz.GetY() + 2 * em, 68 * em));
}
html->SetMinSize(page_size);