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:
@@ -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;
|
||||||
};
|
};
|
||||||
|
@@ -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),
|
||||||
|
Reference in New Issue
Block a user