public override AccessibleObject GetChild(int index) { if (this.owner.IsInEditMode && this.owner.CurrentRow == this.row && this.owner.CurrentColumn == this.column) { BaseGridEditor activeEditor = this.owner.ActiveEditor as BaseGridEditor; if (activeEditor != null) { RadElement editorElement = activeEditor.EditorElement; RadSpinEditorElement editor = editorElement as RadSpinEditorElement; if (editor != null) { return((AccessibleObject) new RadGridSpinEditorElementAccessibleObject(this.owner, editor, this, editor.ControlBoundingRectangle.Size, new Point(editor.ControlBoundingRectangle.X, editor.ControlBoundingRectangle.Y), editor.Name)); } RadDropDownListEditorElement listEditorElement = editorElement as RadDropDownListEditorElement; if (listEditorElement != null) { if (this.dropDownListAccessibleObject != null) { this.dropDownListAccessibleObject.UnwireEvents(); } this.dropDownListAccessibleObject = new GridDropDownAccessibilityObject((RadDropDownListElement)listEditorElement, this, listEditorElement.Name); return((AccessibleObject)this.dropDownListAccessibleObject); } } } return(base.GetChild(index)); }
public void NotifyClients(AccessibleEvents accEvent, int childID) { GridDropDownAccessibilityObject.NotifyWinEvent((int)accEvent, new HandleRef((object)this.DropDownListElement.Popup, this.DropDownListElement.Popup.Handle), -4, childID + 1); }