bugDotGNU Portable.NET - Bugs: bug #12505, LostFocus for ComboBox not invoked...


You are not allowed to post comments on this tracker with your current authentication level.

bug #12505: LostFocus for ComboBox not invoked correctly

Submitter:  Erich Kitzmüller <ammoq>
Submitted:  Wed 30 Mar 2005 10:31:30 AM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Postponed
Privacy:  Public Assigned to:  drobosson
Open/Closed:  Open

Wed 13 Apr 2005 10:54:18 AM UTC, comment #4: 

Added GotFocus handler.  The only remaining issue is that (when compared against MS implementation) when closing the dropdown, a GotFocus event is thrown.  This does not happen in the MS implementation.

Deryk Robosson <drobosson>
Group Member
Mon 04 Apr 2005 02:24:29 PM UTC, comment #3: 

the same problem also appears with GotFocus

Erich Kitzmüller <ammoq>
Mon 04 Apr 2005 01:37:40 PM UTC, comment #2: 

Commented out lines 597 and 598 in ComboBox.cs which results in duplicate behaviour when compared to the MS implementation.  This method in which these lines resides states that it's a non Microsoft method.  We need to verify that leaving out those to bits does or does not have any residual side effects on anything not equal to a ComboBoxStyle.DropDownList?

Deryk Robosson <drobosson>
Group Member
Sun 03 Apr 2005 01:22:21 PM UTC, comment #1: 

The related patch has been applied to CVS.  The test case with MS implementation only throws the LostFocus event one when the drop down is opened, not twice as Mono and Pnet currently do.

Will leave this open pending a review of the code to work out a solution to interop behaviour.

Deryk Robosson <drobosson>
Group Member
Wed 30 Mar 2005 10:31:30 AM UTC, original submission:  

Only the Button that opens the drop down list seem to fire the LostFocus-Event. This is nasty, since at this time, the item are not yet selected.
As a quick fix, I made a patch that makes the TextBox fire the LostFocus-Event, too. This makes the ComboBox behave better when cycling focus by the Tab key. As a side effect, it fires LostFoucs events when you click the button to open the dropdown list. I think it would be desirable to avoid this behaviour, though I don't know how this can be done.

Erich Kitzmüller <ammoq>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #2804:  ComboForm.cs added by ammoq (976B - text/x-csharp - Testcase for ComboBox)


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.


Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-04-03 drobosson StatusNone Postponed
    Assigned toNone drobosson
2005-03-30 ammoq Attached File- Added ComboForm.cs, #2364

Back to the top

Powered by Savane 3.13-b921.
Corresponding source code