Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid class to know if any control is double clicked
Message
De
28/12/2004 14:06:23
 
 
À
28/12/2004 13:28:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
00971672
Message ID:
00972665
Vues:
20
Does this have anything to do with it?

From the help for BINDEVENT():
"In Visual FoxPro, a procedure that has no explicit RETURN statement returns an implicit value of True (.T.). This is an issue only if the event was triggered by method call and not via normal interactive mode or RAISEEVENT( ) call."

It does work differently than VFP8 did.

{update]
In checking it further, there doesn't appear to be any way to get the RETURN value from the delegate, even if there is no implicit .T. return from the procedure. I changed your code to return 1 and the delegate to return 0 and was not able to see the delegates return at all. In practice with event binding, I've usually set properties indicating change in status instead of return values. Maybe what you're seeing is the reason why I've always done it that way, even in other OS's and languages I used to work with long before I started working on PCs and VFP.


>The RTM version. Read message 971680
>
>>Could you expand on that? Do you mean the shipping version or the public Beta?
>>
>>>As long as you don't need a return value from the delegate. A critical part of BINDEVENT has been broken in VFP9.
>>>
>>>>You can BindEvent every "CurrentControl" in your grid columns.
>>>>
>>>>>Hi all
>>>>
>>>>>I am trying to capture a double-click inside a grid, right now the double click is not registered by the grid. This grid is dynamic so the columns are not in my control to program to put in the controls double-click.
>>>>
>>>>>Please advise.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform