Add unit tests for checking wxTE_PROCESS_ENTER handling
Verify that pressing Enter in a dialog activates its default button when a text-like (i.e. wxTextCtrl or wxComboBox) has focus either if it doesn't have wxTE_PROCESS_ENTER style or if it does, but its handler skips the event, but not if the style is used and the event is handled.
This commit is contained in:
@@ -75,4 +75,11 @@ private:
|
||||
wxDECLARE_NO_COPY_CLASS(TextEntryTestCase);
|
||||
};
|
||||
|
||||
// Function to call to test that wxTE_PROCESS_ENTER is handled correctly for
|
||||
// the controls of the type created by the given creator function when they're
|
||||
// placed in a dialog with a default button.
|
||||
typedef wxControl* (*TextLikeControlCreator)(wxWindow* parent, int style);
|
||||
|
||||
void TestProcessEnter(TextLikeControlCreator controlCreator);
|
||||
|
||||
#endif // _WX_TESTS_CONTROLS_TEXTENTRYTEST_H_
|
||||
|
||||
Reference in New Issue
Block a user