During the operation of phpmole, there are various situations where a prompt, or message needs to appear - eg. Dragging a file from the directory browser to the tree, should as ' do you want to copy this file' or even more important - do you want to delete this file... This is what the interface should look like. $this->delete_dialog = &new phpide_dialog_generic("yes_no"); $this->delete_dialog->set_message("Do you want to delete this?"); $this->delete_dialog->set_title("Delete File"); $this->delete_dialog->set_callback_ok(array(&$this, "really_delete)); // an object callback $this->delete_dialog->set_callback_cancel(array(&$this, "really_delete")); // an object callback (optional); $this->delete_dialog->show(); originally, I used caching to store the dialogs, but it may just easier to destroy the dialog on hide. callbacks should do $this->delete_dialog->destroy(); // which hides and destroys the dialog.