adding hook, but unfortunately no solution yet for wxComboBox::SetEditable

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2013-06-12 06:51:24 +00:00
parent 809f6ef394
commit d4e5c5b98a
2 changed files with 10 additions and 0 deletions

View File

@@ -115,6 +115,8 @@ public :
virtual void Popup(); virtual void Popup();
virtual void Dismiss(); virtual void Dismiss();
virtual void SetEditable(bool editable);
private: private:
NSComboBox* m_comboBox; NSComboBox* m_comboBox;
}; };

View File

@@ -210,6 +210,14 @@ void wxNSComboBoxControl::Dismiss()
[ax accessibilitySetValue: [NSNumber numberWithBool: NO] forAttribute: NSAccessibilityExpandedAttribute]; [ax accessibilitySetValue: [NSNumber numberWithBool: NO] forAttribute: NSAccessibilityExpandedAttribute];
} }
void wxNSComboBoxControl::SetEditable(bool editable)
{
// TODO: unfortunately this does not work, setEditable just means the same as CB_READONLY
// I don't see a way to access the text field directly
NSComboBoxCell* c = [m_comboBox cell];
[c setEditable:editable];
}
wxWidgetImplType* wxWidgetImpl::CreateComboBox( wxComboBox* wxpeer, wxWidgetImplType* wxWidgetImpl::CreateComboBox( wxComboBox* wxpeer,
wxWindowMac* WXUNUSED(parent), wxWindowMac* WXUNUSED(parent),
wxWindowID WXUNUSED(id), wxWindowID WXUNUSED(id),