Bug 436409 - combobox: simple style combobox missing "list" under "text box" in application windows
Summary: combobox: simple style combobox missing "list" under "text box" in applicatio...
Status: CONFIRMED
Alias: None
Product: UI Automation
Classification: Mono
Component: Winforms - General (show other bugs)
Version: Release 0.9
Hardware: x86 openSUSE 11.0
: P3 - Medium : Major
Target Milestone: Release 0.9
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on: 428644 428647 428648 428649 428650 428651 428652 428653 428654 464188
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-17 10:11 UTC by calen chen
Modified: 2009-03-09 20:50 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
btaylor1: needinfo? (sshaw)


Attachments
C# example for combobox with simple style (41.42 KB, text/plain)
2008-10-17 10:13 UTC, calen chen
Details
c# example (9.50 KB, application/x-executable)
2009-01-04 08:51 UTC, calen chen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description calen chen 2008-10-17 10:11:47 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:
Comment 1 calen chen 2008-10-17 10:13:25 UTC
Created attachment 246223 [details]
C# example for combobox with simple style
Comment 2 Andres Aragoneses 2008-10-22 18:06:44 UTC
This is a fairly complicated testcase. It needs all comboboxes finished, so I'm adding dependencies.
Comment 3 calen chen 2008-11-10 07:50:21 UTC
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/
Comment 4 Brad Taylor 2008-12-12 17:01:22 UTC
This appears to work as of r121441.
Comment 5 calen chen 2009-01-04 02:46:49 UTC
Closed in trunk r122387
Comment 6 calen chen 2009-01-04 08:49:54 UTC
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
Comment 7 calen chen 2009-01-04 08:51:14 UTC
Created attachment 263101 [details]
c# example
Comment 8 Brad Taylor 2009-01-05 15:00:47 UTC
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.
Comment 9 calen chen 2009-01-06 05:23:53 UTC
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());

		}

	}			

}
Comment 10 Brad Taylor 2009-01-06 14:54:57 UTC
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.
Comment 11 Mario Carrion 2009-01-07 17:35:13 UTC
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.
Comment 12 Brad Taylor 2009-01-07 17:41:01 UTC
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 13 Stephen Shaw 2009-02-24 20:19:34 UTC
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.
Comment 14 Brad Taylor 2009-03-05 19:55:44 UTC
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.