This Question is Possibly Answered

1 "correct" answer available (5 pts) 15 "helpful" answers available (3 pts)
1 Replies Last post: Nov 19, 2008 9:22 AM by Kamal Bhatt  
Tiju Thomas Level 7 138 posts since
Oct 17, 2007
Currently Being Moderated

Nov 18, 2008 11:20 PM

ListBox added to a MenuPane

 

I do have a listbox that is added to a menupane and calls the popup of the menupane to display the listbox. However, I do want to handle the destruction of the popup and then iterate through the listbox' selected-indices to invoke another proc, as, I do not want to invoke the proc on every value-finished event of the listbox.

 

 

 

 

Which event helps me catch the destruction of the popup or the listbox?

 

 

Kamal Bhatt BlackBelt 195 posts since
Oct 17, 2007
Currently Being Moderated
1. Nov 19, 2008 9:22 AM in response to: Tiju Thomas
Re: ListBox added to a MenuPane

I am not sure what you are trying to do here. But as far as knowing when the View of a MenuPane s destroyed is simple.

 

On AttachEvent of a MenuPane you can add code to add a DestroyNotify event on to the View of the MenuPane. Now when this view is destroyed the event handler will be called.

 

Another way, that may work (I have not tested) is to add a DetachEvent handler to the MenuPane and use it for your purpose.

More Like This

  • Retrieving data ...