| 428 | } |
| 429 | |
| 430 | wxAccStatus GetState(int childId, long* state) override |
| 431 | { |
| 432 | if(childId != wxACC_SELF) |
| 433 | return wxACC_NOT_IMPLEMENTED; |
| 434 | |
| 435 | const auto window = GetWindow(); |
| 436 | if(!window->IsEnabled()) |
| 437 | *state = wxACC_STATE_SYSTEM_UNAVAILABLE; |
| 438 | else |
| 439 | { |
| 440 | *state = wxACC_STATE_SYSTEM_FOCUSABLE; |
| 441 | if(window->HasFocus()) |
| 442 | *state |= wxACC_STATE_SYSTEM_FOCUSED; |
| 443 | } |
| 444 | return wxACC_OK; |
| 445 | } |
| 446 | }; |
| 447 | #endif |
| 448 |