If grids have a setfocus method, why don't they have gotfocus and lostfocus
events?


--
You can reach me at: p one six seven (remove spaces and convert words to
digits) at comcast dot net

Re: grid focus by trw7at

trw7at
Wed Oct 12 18:25:27 CDT 2005

Paul Pedersen seemed to utter in
news:#P#Ok23zFHA.3408@TK2MSFTNGP09.phx.gbl:

> If grids have a setfocus method, why don't they have gotfocus and
> lostfocus events?

I suspect it's because the grid itself does not really receive the
focus - rather the controls contained in the grid (textboxes, etc.)

-- TRW
_______________________________________
t r w 7
at
i x dot n e t c o m dot c o m
_______________________________________

Re: grid focus by Paul

Paul
Wed Oct 12 18:29:56 CDT 2005

But I want a lost focus event! I really don't care which control within the
grid has the focus, and I don't want to track them all.


"Tim Witort" <trw7at@ixdot.netcomdotcom> wrote in message
news:Xns96EDA720442A1timwitortwrotethis@207.217.125.201...
> Paul Pedersen seemed to utter in
> news:#P#Ok23zFHA.3408@TK2MSFTNGP09.phx.gbl:
>
>> If grids have a setfocus method, why don't they have gotfocus and
>> lostfocus events?
>
> I suspect it's because the grid itself does not really receive the
> focus - rather the controls contained in the grid (textboxes, etc.)
>
> -- TRW
> _______________________________________
> t r w 7
> at
> i x dot n e t c o m dot c o m
> _______________________________________



Re: grid focus by Gene

Gene
Wed Oct 12 18:52:31 CDT 2005

On Wed, 12 Oct 2005 16:29:56 -0700, "Paul Pedersen"
<no-reply@swen.com> wrote:

>But I want a lost focus event! I really don't care which control within the
>grid has the focus, and I don't want to track them all.

So subclass the control types you use in grids to call a grid
method when the control is going to lose focus.

What do you want to do in a grid lostfocus?

[snip]

Sincerely,

Gene Wirchenko


Re: grid focus by man-wai

man-wai
Thu Oct 13 08:13:36 CDT 2005

Paul Pedersen wrote:
> But I want a lost focus event! I really don't care which control within the
> grid has the focus, and I don't want to track them all.

can you just use grid.valid() and grid.when().

Note that grid.valid() fires before grid.column.textbox.valid().

--
.~. Might, Courage, Vision. http://www.linux-sxs.org
/ v \
/( _ )\ Linux 2.6.13
^ ^ 21:12:01 up 23:16 0 users 1.28 1.27