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

Version Path
wxruby3-1.4.2 rakelib/lib/generate/doc/dialog.yaml
wxruby3-1.4.1 rakelib/lib/generate/doc/dialog.yaml
wxruby3-1.4.0 rakelib/lib/generate/doc/dialog.yaml
wxruby3-1.3.1 rakelib/lib/generate/doc/dialog.yaml
wxruby3-1.3.0 rakelib/lib/generate/doc/dialog.yaml
wxruby3-1.2.1 rakelib/lib/generate/doc/dialog.yaml
wxruby3-1.2.0 rakelib/lib/generate/doc/dialog.yaml
wxruby3-1.1.2 rakelib/lib/generate/doc/dialog.yaml
wxruby3-1.1.1 rakelib/lib/generate/doc/dialog.yaml
wxruby3-1.1.0 rakelib/lib/generate/doc/dialog.yaml
wxruby3-1.0.1 rakelib/lib/generate/doc/dialog.yaml
wxruby3-0.9.8 rakelib/lib/generate/doc/dialog.yaml
wxruby3-0.9.7 rakelib/lib/generate/doc/dialog.yaml
wxruby3-0.9.5 rakelib/lib/generate/doc/dialog.yaml
wxruby3-0.9.4 rakelib/lib/generate/doc/dialog.yaml
wxruby3-0.9.3 rakelib/lib/generate/doc/dialog.yaml
wxruby3-0.9.2 rakelib/lib/generate/doc/dialog.yaml
wxruby3-0.9.1 rakelib/lib/generate/doc/dialog.yaml
wxruby3-0.9.0 rakelib/lib/generate/doc/dialog.yaml
wxruby3-0.9.0.pre.rc.3 rakelib/lib/generate/doc/dialog.yaml