| 905 | } |
| 906 | |
| 907 | void NumericTextCtrl::SetFieldFocus(int digit) |
| 908 | { |
| 909 | #if wxUSE_ACCESSIBILITY |
| 910 | if (!mFormatter || mBoxes.size() == 0) |
| 911 | { |
| 912 | mFocusedDigit = 0; |
| 913 | return; |
| 914 | } |
| 915 | mFocusedDigit = digit; |
| 916 | |
| 917 | GetAccessible()->NotifyEvent(wxACC_EVENT_OBJECT_FOCUS, |
| 918 | this, |
| 919 | wxOBJID_CLIENT, |
| 920 | mFocusedDigit + 1); |
| 921 | #endif |
| 922 | } |
| 923 | |
| 924 | void NumericTextCtrl::Updated(bool keyup /* = false */) |
| 925 | { |