Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where oh Where is my event??
Message
De
28/05/1999 17:41:47
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Where oh Where is my event??
Divers
Thread ID:
00224161
Message ID:
00224161
Vues:
49
I have a single column grid on a form set to invisible. It is populated by an SQL statement. When a certain field gets focus the grid is made visible (??scrolling lookups are much easier in grids than in listboxes??) and becomes a scrolling lookup as the user types in the field. In the lost focus of the field the grid is set to visible=.f. and thus it never receives focus. This all works fine. I need ,however, to allow the user to click on the grid to make a selection with the mouse. Using a combination of amouseobj,gridhittest, and activate cell I can stuff the value of the sql field into the form field if the mouse is positioned on a record in the grid when the form field loses focus. What I cannot seem to do is get a handle on a mouse click in the grid. This click does not seem to show up anywhere. (when the click occurs, the lost focus event for the field fires and sets the grid to visible=.f.) The grid never gets focus so no events fire in it and the form does not react to a mouse event inside the grid. If I turn event logging on it catchs the grid mousedown event, but any code in that event never fires. Can anyone tell me how to track this event down?
A problem is a problem only as long as it has a possible solution. Lacking that, it becomes a FACT!
Répondre
Fil
Voir

Click here to load this message in the networking platform