[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Pnet-developers] Focus bug
From: |
Marc Haisenko |
Subject: |
Re: [Pnet-developers] Focus bug |
Date: |
Wed, 23 Mar 2005 16:14:21 +0100 |
User-agent: |
KMail/1.7.1 |
On Tuesday 22 March 2005 13:36, Marc Haisenko wrote:
> So by setting ControlStyles.Selectable to false prevents a control from
> receiving the input focus (I've tested this with Label, works as expected).
>
> I guess we now have two options: opt-in or opt-out. Should we specifically
> mark each control that is NOT able to receive the input focus (by doing
> SetStyle(ControlStyles.Selectable, false) in the constructor) or should be
> specifcally mark each control that IS able to receive the input focus ? I'm
> not quite sure how this is implemented in MS .NET, but I guess they mark
> each control that can NOT receive an input focus.
To answer my own question, it looks like MS is using opt-out, so we have to do
SetStyle (ControlStyles.Selectable, false) on every control that should not
receive the input focus like Label, Panel, etc.
--
Marc Haisenko
http://darkdust.net
Today is Boomtime, the 9th day of Discord in the YOLD 3171