adding events to single line textcontrols (password is not fully supported)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2009-06-11 06:40:24 +00:00
parent 0cd4552a99
commit 7cb2a24183
5 changed files with 162 additions and 101 deletions

View File

@@ -155,6 +155,9 @@ protected:
WXWidget m_osxView;
NSEvent* m_lastKeyDownEvent;
bool m_isFlipped;
// if it the control has an editor, that editor will already send some
// events, don't resend them
bool m_hasEditor;
DECLARE_DYNAMIC_CLASS_NO_COPY(wxWidgetCocoaImpl)
};
@@ -244,9 +247,34 @@ protected :
@end
@interface wxNSTextFieldEditor : NSTextView
{
NSEvent* lastKeyDownEvent;
}
@end
@interface wxNSTextField : NSTextField
{
wxNSTextFieldEditor* fieldEditor;
}
- (wxNSTextFieldEditor*) fieldEditor;
- (void) setFieldEditor:(wxNSTextFieldEditor*) fieldEditor;
@end
@interface wxNSSecureTextField : NSSecureTextField
{
}
@end
@interface wxNSTextView : NSTextView
{
}
@end
@interface wxNSMenu : NSMenu