+ // Check if the given key event should stop editing and return true if it
+ // does or false otherwise.
+ bool CheckForEndEditKey(const wxKeyEvent& event);
+
+ // Different reasons for calling EndEdit():
+ //
+ // It was called because:
+ enum EndReason
+ {
+ End_Accept, // user has accepted the changes.
+ End_Discard, // user has cancelled editing.
+ End_Destroy // the entire control is being destroyed.
+ };
+
+ void EndEdit(EndReason reason);