| 267 | } |
| 268 | |
| 269 | wxAccStatus TreeCtrlAx::GetName(int childId, wxString* name) |
| 270 | { |
| 271 | if ( childId == wxACC_SELF ) |
| 272 | return WindowAccessible::GetName( childId, name ); |
| 273 | else { |
| 274 | auto ctrl = GetCtrl(); |
| 275 | if (!ctrl) |
| 276 | return wxACC_FAIL; |
| 277 | |
| 278 | auto item = FindItem( *ctrl, childId ); |
| 279 | if ( item ) { |
| 280 | *name = ctrl->GetItemText( item ); |
| 281 | return wxACC_OK; |
| 282 | } |
| 283 | else |
| 284 | return wxACC_INVALID_ARG; |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | wxAccStatus TreeCtrlAx::GetRole( int childId, wxAccRole* role ) |
| 289 | { |
no test coverage detected