Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG in WriteExpression
Message
From
01/04/2004 04:03:30
 
 
To
31/03/2004 06:23:00
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00890361
Message ID:
00891388
Views:
21
Fabio,

>
>As to the Got/LostFocus issue,
>if you put a Grid on a Container and code into the Got/LostFocus of the Container, you can achieve the same effects as having Got/LostFocus in the Grid.
>

>
>This is not true.

This is very true, but perhaps not in your mindset.


>Case a)
>For Grid on Grid this is not true because
>when you put a container into a Grid cell,
>Container.GotFocus not fire ( Form.GotFocus is fired !)

In my 20+ years of developing, I have never seen a rational case for a Grid on Grid.


>Case b)
>I have found a case with Grid within Container when this is not true.
>I search on my problems archive a try to write a repro code.


>John, into VFP exists many redundant events;
>why VFPT it has this reticence to add GotFocus/Lostfocus in grid Class ?
>( grid have SetFocus, then a correct OOP must have Got/Lostfocus events )


There's not inate reticence, as you put it, but tyhe controls within a Grid can accept Focus events so...? Subcalss, dude. I see this as analogous to Change events.

>If BINDEVENT() worked with Form.ActiveControl,
>I would resolve the problem alone, but it does not work.
>
>Fabio

I think the main problem is you're trying to get the product to work the way you think it should and not the way it actually does. Probably, everything you are trying to do can be accomplished by subclassing controls within the Grid, my Container suggestion, et al. Try harder, Fabio.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform