How can I create a confirmation widget, that will communicate back to its parent?

I do not. Instead, I trusted the forums wizards with my precious screenshots and they lost it, an appropriate complaint has been filed, worry not!


While we wait for the stuff to get fixed:

  • this is my wOptions widget that has OK and CANCEL buttons:

  • and this is my wMain widget that shows the abovementioned wOptions

image

  • when the user presses OPTIONS a new options menu with OK and CANCEL buttons pops up
  • we register the button clicks of the new options menu with events in the wMain
  • if any of those buttons are clicked, wMain will fire the appropriate event, (replace Print Strings with what you need to happen) and the menu gets closed

The above can be made better / cleaner with a custom event dispatcher.

1 Like