If you issue oDlg:End() then you will have to recreate the DIALOG (DEFINE DIALOG etc.) again. You can't reuse an ended DIALOG.
EMG
If you issue oDlg:End() then you will have to recreate the DIALOG (DEFINE DIALOG etc.) again. You can't reuse an ended DIALOG.
EMG
I have done this in the past. Each control needed to be "refreshed" in the initialization of the ::activate()
The reason I did this was due to many controls / folder pages, etc, which were created from data driven applications. The computers were much slower ( 386 speed ) and this saved lots of overhead.
Upon 're-activation' the controls worked fine, but, my dialog's background was "transparent".
Not an issue anymore - computers are much faster and no problem saving data-driven parms in an array and define / activate each time needed.
Things have come a long way, haven't they?
I think it is not correct to reuse an ended DIALOG. You can hide it instead.
EMG
Enrico,
I agree, but I think he is just saying that he is storing the parameters in an array, then reusing the parameters to define and acitvate the dialog each time. I guess this would be no different than rereading them from a resource file.
Don, am I right?
James
Exactly -
For me, easier to store dialog parms in a database and build dynamically vs. create resource, manually code controls to variables. etc. Using a data dictionary for me, is cleaner - only one input program, only one browse/update program, etc.
Don,
I am curious as to how you design the dialogs in the first place. Do you design them in Workshop or other, then read the resource file to create your database, or how?
James
James Bott wrote:Enrico,
I agree, but I think he is just saying that he is storing the parameters in an array, then reusing the parameters to define and acitvate the dialog each time. I guess this would be no different than rereading them from a resource file.
Don, am I right?
James
don lowenstein wrote:Exactly -
For me, easier to store dialog parms in a database and build dynamically vs. create resource, manually code controls to variables. etc. Using a data dictionary for me, is cleaner - only one input program, only one browse/update program, etc.