-void PropEditCtrlChoice::OnChoice(wxCommandEvent& event)
+void PropEditCtrlChoice::OnChoice(wxCommandEvent& WXUNUSED(event))
{
if (CanSave())
{
wxString txt = m_TextCtrl->GetValue();
long unsigned tmp;
- if (txt.Length() == 7 && txt[0] == _T('#') &&
+ if (txt.Length() == 7 && txt[0u] == _T('#') &&
wxSscanf(txt.c_str(), _T("#%lX"), &tmp) == 1)
clr = wxColour((tmp & 0xFF0000) >> 16,
(tmp & 0x00FF00) >> 8,
(tmp & 0x0000FF));
+
clr = wxGetColourFromUser(NULL, clr);
if (clr.Ok())
{
{
while (axrc[0] == afile[0])
{
- afile.Remove(0u);
- axrc.Remove(0u);
+ afile.RemoveAt(0u);
+ axrc.RemoveAt(0u);
}
size_t i;
txt.Empty();
wxString PropEditCtrlImageFile::GetFileTypes()
{
- return _("GIF files (*.gif)|*.gif|"
- "JPEG files (*.jpg)|*.jpg|"
- "PNG files (*.png)|*.png|"
- "BMP files (*.bmp)|*.bmp|"
- "All files (*)|*");
+ return _("GIF files (*.gif)|*.gif|JPEG files (*.jpg)|*.jpg|PNG files (*.png)|*.png|BMP files (*.bmp)|*.bmp|All files (*)|*");
}