[Plib-devel] listbox and filepicker
Brought to you by:
sjbaker
From: Dave M. <Dav...@dy...> - 2000-08-04 17:51:19
|
i added a listbox and filepicker to pui in the pui example called complex.cxx i hooked the filepicker to the menu/save button one thing i noticed in doing this is that having the callback for one dialog create another dialog and then delete itself via puDeleteObject has problems the reason is that pui maintains an interface *stack* in puInterface.cxx the creation of another dialog precedes the deferred deletion of the old dialog which messes up the stack so when the puInterface destructor calls puPopLiveInterface () ; it is popping the wrong dialog (ie: the new one) and the old one (which was destructed) gets left on the stack. at least this is what i think is happening. what is needed is a better way to handle this because *chaining* from one dialog to another ala linked buttons is pretty common. any suggestions? --Dave |