Bugzilla – Bug 436409
combobox: simple style combobox missing "list" under "text box" in application windows
Last modified: 2009-03-09 20:50:31 UTC
PROBLEM STATEMENT: In Vista, combobox with simple style(comboBox.DropDownStyle = ComboBoxStyle.DropDownList) in Form windows shows "text box", "list" and "list item" in list. But in openSUSE11(without update our rpms), simple style combobox just shows "text box", I don't see "list" and list item". REPRO: 1. Run uia2atk/test/samples/combobox_simple.py 2. Or Run C# example from attachment RESULTS: combobox with simple style is missing "list" widget in Form windows EXPECTED RESULTS: run the application, Form windows would shows "text box", "list" and "list item" in list for users. COMMENTS:
Created attachment 246223 [details] C# example for combobox with simple style
This is a fairly complicated testcase. It needs all comboboxes finished, so I'm adding dependencies.
add more comments: in below version, application window can show items list box, but when I click one item that would cause some items disappear, for instance, click "5" would cause "0,1,2,3,4" disappear. RPM (32bit) Rev values for - 110608 libgdiplus - 118013/ UiaAtkBridge - 118053/ mono - 118078/ gtk-sharp212 - 118068/ olive - 117997/ UiautomationWinforms - 118046/
This appears to work as of r121441.
Closed in trunk r122387
sorry Briad, I will reopen this bug, because Comment #3, I just missed that problem. I have tried combobox with simple style in Vista that there were no items disappear even thought I clicked all items. another problem is: our combobox_simple.py running in Vista by IronPython also doesn't shows list in Gui, so we create an C# example this bug doesn't block our test, so I reduce the priority to P3
Created attachment 263101 [details] c# example
Calen -- I'm seeing this too. I don't think this is an issue with our code however, it's more of an issue with Mono Winforms. Could you attach the .cs file from your test case, and I'll have someone file this and babysit it with upstream. Thanks.
yeah i also think this is an issue with mono winforms, here is the .cs file: using System; using System.Windows.Forms; namespace MyFormProject { class MainForm : System.Windows.Forms.Form { private System.Windows.Forms.ComboBox comboBox1; public MainForm() { InitializeComponent(); } void InitializeComponent() { this.comboBox1 = new System.Windows.Forms.ComboBox(); this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple; //this.comboBox1.FormattingEnabled = true; this.comboBox1.Items.AddRange(new object[] { "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"}); this.comboBox1.Location = new System.Drawing.Point(10, 10); this.comboBox1.Name = "comboBox1"; this.comboBox1.Size = new System.Drawing.Size(121, 150); this.comboBox1.TabIndex = 2; // // MainForm // this.ClientSize = new System.Drawing.Size(220, 200); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.comboBox1}); this.Text = "combobox_simple"; this.ResumeLayout(false); } [STAThread] public static void Main(string[] args) { Application.Run(new MainForm()); } } }
In the future, attaching the file via the Add an Attachment link at the bottom of the bug page is far more useful than pasting it in the comment box. Since Mario did the initial work on ComboBox, I'd like to get his input to see if he's seen this issue before, and if he knows if it's been filed already.
This is definitely a Mono bug, first time I see it in ComboBox, I recall seeing something similar in ListBox. I guess is a regression because in mono 2.0.1 is not happening. I filed bug #464188.
Thanks Mario. As far as I know, that was the last issue remaining on this bug. If not, Calen, please feel free to reopen.
comment #3 and other comments, is this bug about the role or items disappearing? Items in the list aren't disappearing, but the roles haven't changed. Reopening bug.
Stephen, comment #3 is talking about the items, as far as I can tell, so I'm not sure where you're coming from. Can you provide new steps as the old steps don't trigger any issues.