Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do any events fire when list box row changes
Message
De
09/10/2002 15:59:53
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
09/10/2002 15:03:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00709463
Message ID:
00709502
Vues:
13
>I have taken over maintenance of an application that exclusively uses listboxes (converted from 2.6). I am more accustomed to working with grids. In a grid, when the afterrowcolumnchange event fires, I can refresh other data elements that are adjacent to the grid.
>
>How can I accomplish this with a listbox? I see that there is a keypress event, so I could trap for up and down arrow, and others like mousedown. But that seems cumbersome. Is there an event that fires when the row changes or some other way to test for a row change so I can accomplish this?

I think Sergey's suggestion to use the InteractiveChange is the one you want. Keep in mind that if you change the listbox thru code at all, you may want to do the same thing from ProgrammaticChange.

Even if you're not sure you'll be doing this, you might save yourself some headaches if you add a method to your listbox base class (I assume you're directly using the Fox native class). Call it "OnChange" for example.

Then in the Programmatic and InteractiveChange events just call "OnChange".
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform