Bug 495623 - FragmentControlProvider::SetFocus () doesn't work for ToolStripMenuItems
Summary: FragmentControlProvider::SetFocus () doesn't work for ToolStripMenuItems
Status: RESOLVED FIXED
Alias: None
Product: UI Automation
Classification: Mono
Component: Winforms - UIA (show other bugs)
Version: Release 1.0
Hardware: All All
: P5 - None : Minor
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 479397
  Show dependency treegraph
 
Reported: 2009-04-16 17:53 UTC by Andres Aragoneses
Modified: 2009-04-28 23:18 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andres Aragoneses 2009-04-16 17:53:03 UTC
It doesn't work because current implementation only takes in account elements of type Control, and ToolStripMenuItems are Components. This is a request from the following "feature request" from http://www.mono-project.com/Accessibility:_Specification_Notes :

  12. There's no way to Select an actionable menuitem without invoking it. Let me explain, let's say we have this context menu: 

Edit (Cut | Copy | Paste) | Delete

The leaf items are the "actionable" menuitems, i.e., the menuitems that have no children (Cut, Copy, Paste, Delete). There's no way to select those items without invoking them, because they don't implement the SelectionItem pattern, neither their parents implement the Selection one. This would be useful to mimic Atk.Selection.AddSelection() behaviour.

Also, bug 494586 is a bit related to this.
Comment 1 Andres Aragoneses 2009-04-16 17:56:25 UTC
I've tried to use ((System.Windows.Forms.ToolStripItem)Component).Select (); but it's throwing an NRE inside SWF.
Comment 2 Andres Aragoneses 2009-04-28 23:18:53 UTC
(In reply to comment #1)
> I've tried to use ((System.Windows.Forms.ToolStripItem)Component).Select ();
> but it's throwing an NRE inside SWF.

Seems like this NRE happens on some particular case that I have not hunted yet. I'll open a bug for it once I find it. But for now, this bug is fixed in r132912.