May 01, 2024, 08:32:22 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Lost

Started by Rock Ridge Farm (Larry), December 03, 2006, 05:10:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rock Ridge Farm (Larry)

I have a listbox - it has data displayed - I have a button in the listbox that alters the selected data that is displayed.
This button opens a Dialog and collects filter information.
When I exit the Dialog I want to take the collected filter and use it to re-display the data in the listbox.
It appears to make all the correct calls but never updates the data.
The code is very long. Is this enough information to help me?
Has anyone done something similar?

Rock Ridge Farm (Larry)

OK - a little more info.
I found that the listbox is not catching control once the filter is completed.
The filter closes it's dialog - at this point where is the handler in the original listbox that
knows the filter dialog has exited?

Ionic Wind Support Team

Sorry but I have no idea what you are talking about.  Always hated those word problems they gave on school tests ;)

Without seeing the code I would just be making shots in the dark.
Ionic Wind Support Team

Rock Ridge Farm (Larry)

What I need is to know when I return to the listview from the dialog call.
How can I tell in the listview that I have returned from the dialog?
I just need to know that I went to the dialog box and have now returned.
I will try to make a small demo later today if this is not enough.
Event - listview is displayed.
Event - menu item selected in listview.
Event - Dialog box called from the menu takes action.
Event- Control returned to listview. (this is what I am not able to detect).

Rock Ridge Farm (Larry)

I got it to work by setting a flag in the called dialog box then checking for the flag in
the OnNotify section of the listview.
Just seems there should be a way to trap the return event.

LarryMc

In EBasic a dialog can have a return value.  If Aurora has the same you could return a value and then loop until you see it. 
Sort of like you just did.
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Ionic Wind Support Team

He must be using the ShowDialog method,  DoModal would have been better in this case since control is not returned to the calling function until the dialog is dismissed.

Ionic Wind Support Team