Bug 323190 (MONO80501) - Focus issues
Summary: Focus issues
Status: RESOLVED FIXED
Alias: MONO80501
Product: Mono: Class Libraries
Classification: Mono
Component: Windows.Forms (show other bugs)
Version: 1.2
Hardware: Other Linux
: P3 - Medium : Minor
Target Milestone: 1_2
Assignee: Andreia Vidigal Gaita
QA Contact: Mono Bugs
URL:
Whiteboard: LinkLabel
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-11 21:50 UTC by Gert Driesen
Modified: 2008-01-16 00:34 UTC (History)
0 users

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


Attachments
Repro (3.72 KB, text/plain)
2007-01-11 21:51 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
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