Sha256: 251c9b075270322107edbf358027f456ee39ae01176cf31df355f55b48bfc626
Contents?: true
Size: 1.16 KB
Versions: 22
Compression:
Stored size: 1.16 KB
Contents
--- :wxDialog: :detail: :pre: :para: - :pattern: !ruby/regexp /Note\s+that\s+the\s+modal\s+dialog\s+is\s+one\s+of\s+the\s+very\s+few\s+examples/ :replace: | Note that dialogs need to be explicitly destroyed when closed and not used anymore. The traditional code for this would be like: :programlisting: - :pattern: !ruby/regexp /MyAskDialog.*\*dlg/ :replace: | ```ruby def ask_user dlg = MyAskDialog.new(...) if dlg.show_modal == Wx::ID_OK # ... #else: dialog was cancelled or some another button pressed end dlg.destroy end ``` - :pattern: !ruby/regexp /dlg\.ShowModal\(\)/ :replace: | ```ruby def ask_user MyAskDialog(...) do |dlg| if dlg.show_modal == Wx::ID_OK # ... #else: dialog was cancelled or some another button pressed end end end ```
Version data entries
22 entries across 22 versions & 1 rubygems