git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41097
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- Support for right-to-left text layout (Diaa Sami during Google Summer of Code)
- Added wxID_PAGE_SETUP standard id
- Support for right-to-left text layout (Diaa Sami during Google Summer of Code)
- Added wxID_PAGE_SETUP standard id
+wxMSW:
+
+- Implemented wxComboBox::SetEditable()
+
wxMac:
- Add parameter to the --enable-universal_binary configure option for the path
wxMac:
- Add parameter to the --enable-universal_binary configure option for the path
return !HasFlag(wxCB_READONLY);
}
return !HasFlag(wxCB_READONLY);
}
-void wxComboBox::SetEditable(bool WXUNUSED(editable))
+void wxComboBox::SetEditable(bool editable)
- // Can't implement in MSW?
-// HWND hWnd = GetHwnd();
-// SendMessage(hWnd, EM_SETREADONLY, (WPARAM)!editable, (LPARAM)0L);
+ HWND hWnd = (HWND)GetEditHWND();
+ if ( !::SendMessage(hWnd, EM_SETREADONLY, !editable, 0) )
+ {
+ wxLogLastError(_T("SendMessage(EM_SETREADONLY)"));
+ }
}
void wxComboBox::SetInsertionPoint(long pos)
}
void wxComboBox::SetInsertionPoint(long pos)
if ( GetWindowStyle() & wxCB_READONLY )
return;
if ( GetWindowStyle() & wxCB_READONLY )
return;
HWND hWnd = GetHwnd();
::SendMessage(hWnd, CB_SETEDITSEL, 0, MAKELPARAM(pos, pos));
HWND hEditWnd = (HWND) GetEditHWND();
HWND hWnd = GetHwnd();
::SendMessage(hWnd, CB_SETEDITSEL, 0, MAKELPARAM(pos, pos));
HWND hEditWnd = (HWND) GetEditHWND();
// Why is this necessary? (Copied from wxTextCtrl::SetInsertionPoint)
SendMessage(hEditWnd, EM_REPLACESEL, 0, (LPARAM) wxEmptyString);
}
// Why is this necessary? (Copied from wxTextCtrl::SetInsertionPoint)
SendMessage(hEditWnd, EM_REPLACESEL, 0, (LPARAM) wxEmptyString);
}
}
void wxComboBox::SetInsertionPointEnd()
}
void wxComboBox::SetInsertionPointEnd()