You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wxMessageDialog msg(this, wxT("Image on bitmap size doesn't match existing bitmap!"), wxT("Wrong bitmap size"), wxOK|wxCENTRE|wxICON_ERROR);
945
+
msg.ShowModal();
946
+
}
947
947
}
948
948
} else {
949
949
// the user has clicked cancel which returns an empty string
950
950
if (m_button->getImageOn() != wxEmptyString) {
951
-
wxMessageDialog msg(this, wxT("Image on value is not empty! Do you want to empty it?"), wxT("Empty image on value?"), wxYES_NO|wxCENTRE|wxICON_EXCLAMATION);
951
+
wxMessageDialog msg(this, wxT("Image on value is not empty! Do you want to empty it? (Also removes mask on if set, may remove image/mask off if set and they won't match default values)"), wxT("Empty image on value?"), wxYES_NO|wxCENTRE|wxICON_EXCLAMATION);
952
952
if (msg.ShowModal() == wxID_YES) {
953
953
// then we empty the value in button and panel
954
954
m_button->setImageOn(wxEmptyString);
955
+
m_button->setMaskOn(wxEmptyString);
955
956
m_button->updateBuiltinBitmapValues();
956
957
UpdateSpinRanges();
957
958
UpdateDefaultSpinValues();
958
959
m_imageOnPathField->SetValue(wxEmptyString);
959
-
m_addImageOffBtn->Disable();
960
+
m_maskOnPathField->SetValue(wxEmptyString);
960
961
m_addMaskOnBtn->Disable();
961
-
m_addMaskOffBtn->Disable();
962
+
if (m_button->getImageOff() != wxEmptyString) {
963
+
// the off bitmap must be evaluated to whether it may stay or not
wxMessageDialog msg(this, wxT("Image off bitmap size must match on bitmap!"), wxT("Wrong bitmap size"), wxOK|wxCENTRE|wxICON_ERROR);
993
+
msg.ShowModal();
984
994
}
985
995
}
986
996
} else {
987
997
// the user has clicked cancel which returns an empty string
988
998
if (m_button->getImageOff() != wxEmptyString) {
989
-
wxMessageDialog msg(this, wxT("Image off value is not empty! Do you want to empty it?"), wxT("Empty image off value?"), wxYES_NO|wxCENTRE|wxICON_EXCLAMATION);
999
+
wxMessageDialog msg(this, wxT("Image off value is not empty! Do you want to empty it? (Also removes mask off if set)"), wxT("Empty image off value?"), wxYES_NO|wxCENTRE|wxICON_EXCLAMATION);
0 commit comments