General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only