bugDotGNU Portable.NET - Bugs: bug #13970, Child gets no focus, when clicking...

 
 

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

bug #13970: Child gets no focus, when clicking on UserControl

Submitted by:  Peter Flaig <fliege>
Submitted on:  Fri 29 Jul 2005 10:24:34 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Marc Haisenko <darkdust>
Open/Closed: Closed

Mon 22 Aug 2005 11:52:59 AM UTC, comment #2:

I've checked in UserControl.cs 1.4 where I used Peters approach. I don't think this is the correct solution, but after investigating focusing/selecting (SelectNextControl,Select) I really don't know what the correct solution looks like... that stuff is very obscure. I've written a small test application and it now behaves the same under Windows and dotGNU, so while I don't think that the solution is correct the behavior at least seems to be.

Marc Haisenko <darkdust>
Project MemberIn charge of this item.
Thu 18 Aug 2005 12:21:42 PM UTC, comment #1:

The zip archive attached appears to be invalid or corrupt. Can you please redo?

Deryk Robosson <drobosson>
Project Member
Fri 29 Jul 2005 10:24:34 AM UTC, original submission:

In MS.Net the first focusable child gets the focus, when the user clicks on a UserControl and the focus isn't already on the UserControl or on one of its childs.

This is my workaround:

class MyControl : Windows.Forms.UserControl
{
protected override void OnMouseDown(MouseEventArgs e)
{
if(this.ActiveControl == null)
{
SelectNextControl(null, true, true, true, false);
}
base.OnMouseDown(e);
}
}

Peter Flaig <fliege>

 

Attached Files
file #3294:  Focus.zip added by fliege (5KiB - application/x-zip-compressed)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 22 Aug 2005 11:52:59 AM UTCdarkdustStatusNeed Info=>Fixed
  Assigned toNone=>darkdust
  Open/ClosedOpen=>Closed
Thu 18 Aug 2005 12:21:42 PM UTCdrobossonStatusNone=>Need Info
Fri 29 Jul 2005 10:24:34 AM UTCfliegeAttached File-=>Added Focus.zip, #2760

Back to the top


Powered by Savane 3.1-cleanup1