RE: [Plib-devel] PUI questions
Brought to you by:
sjbaker
From: Dave M. <dp...@ef...> - 2000-08-02 02:22:14
|
Steve wrote: > Try not to break existing PUI applications - quite a > lot of people use PUI. > understood. any thoughts on how to deal with deleting widgets inside a callback? it seems so natural to get rid of widgets inside the callback when a button is pressed. i'll figure *something* out if there are no approaches you already have in mind. void go_away_cb ( puObject * ) { /* Delete the dialog box when its 'OK' button is pressed. Doing a 'delete dialox_box' here seems to crash on MSVC compilers - probably because dialog_box's member function is indirectly calling this function. Hence we return to something that is in a distinctly 'iffy' state. So, we'll set a flag and delete it later when it's safe. */ delete_the_dialog_box_please = TRUE ; } also, i'd like to add "const" in several places in the plib interfaces. char* parameters often lack "const" where they should have it. any thoughts about that? --Dave |