Bug 323190 (MONO80501)

Summary: Focus issues
Product: [Mono] Mono: Class Libraries Reporter: Gert Driesen <gert.driesen>
Component: Windows.FormsAssignee: Andreia Vidigal Gaita <avidigal>
Status: RESOLVED FIXED QA Contact: Mono Bugs <mono-bugs>
Severity: Minor    
Priority: P3 - Medium    
Version: 1.2   
Target Milestone: 1_2   
Hardware: Other   
OS: Linux   
Whiteboard: LinkLabel
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Repro

Description Thomas Wiest 2007-09-15 20:22:48 UTC


---- Reported by gert.driesen@pandora.be 2007-01-11 14:50:51 MST ----

The LinkLabel's GotFocus and LostFocus events never fire, and the focus 
rectangle is not removed once focus has moved to another control.

To reproduce:
1. compile and run the attached code snippet.
2. follow the on-screen instructions.



---- Additional Comments From gert.driesen@pandora.be 2007-01-11 14:51:51 MST ----

Created an attachment (id=171266)
Repro




---- Additional Comments From everaldo@simios.org 2007-03-11 23:09:57 MST ----

It was cause by a problem under TabStop, now is fixed in SVN r74082.



---- Additional Comments From gert.driesen@pandora.be 2007-04-19 08:15:57 MST ----

Everaldo, this does not appear to be fixed. Once the LinkLabel has 
lost focus, the GotFocus/LostFocus are never fired again (and the 
focus rectangle remains visible even if focus is on another control).



---- Additional Comments From everaldo@simios.org 2007-04-19 12:25:49 MST ----

Not all the time, I cant figure when it happens but I see that
sometimes it happens. Let me take a look at it one more time.



---- Additional Comments From everaldo@simios.org 2007-04-19 12:30:09 MST ----

I figure the problem, if you click on a LinkLabel that already have
focus then focus breaks. Let me check.

Imported an attachment (id=171266)
Comment 1 Jonathan Pobst 2008-01-10 23:52:44 UTC
This looks related to bug #325809.

To repro, click Reset, and the click the LinkLabel a bunch.  A LinkLabel->LostFocus should never be generated.  The Select in Control.WmLButtonDown is causing the LinkLabel to be unselected.
Comment 2 Andreia Vidigal Gaita 2008-01-16 00:34:09 UTC
Fixed in r93001