Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do any events fire when list box row changes
Message
From
09/10/2002 17:11:20
 
 
To
09/10/2002 15:59:53
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00709463
Message ID:
00709558
Views:
17
Thanks. As I said in my reply to Sergey, I had misread the VFP help to indicate that interactive change would not fire in this context.

>>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".
Previous
Reply
Map
View

Click here to load this message in the networking platform