IonicWind Software

Aurora Compiler => Coding Help - Aurora 101 => Topic started by: Rock Ridge Farm (Larry) on December 03, 2006, 05:10:25 PM

Title: Lost
Post by: Rock Ridge Farm (Larry) on December 03, 2006, 05:10:25 PM
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?
Title: Re: Lost
Post by: Rock Ridge Farm (Larry) on December 03, 2006, 06:55:56 PM
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?
Title: Re: Lost
Post by: Ionic Wind Support Team on December 03, 2006, 08:30:46 PM
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.
Title: Re: Lost
Post by: Rock Ridge Farm (Larry) on December 04, 2006, 06:04:11 AM
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).
Title: Re: Lost
Post by: Rock Ridge Farm (Larry) on December 04, 2006, 06:44:38 AM
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.
Title: Re: Lost
Post by: LarryMc on December 04, 2006, 06:53:22 AM
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.
Title: Re: Lost
Post by: Ionic Wind Support Team on December 04, 2006, 10:09:17 AM
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.