Sha256: 26ca61a9c6f6b0959f56c8b1677a87744f13d3d5ac1aec3f8874790285b7eb05

Contents?: true

Size: 773 Bytes

Versions: 6

Compression:

Stored size: 773 Bytes

Contents

include Glimmer

shell { |shell_proxy|
  text 'Hello, Pop Up Context Menu!'
  grid_layout
  label {
    font height: 16
    text 'Right-Click To Pop Up a Context Menu'
    menu {
      menu {
        text '&History'
        menu {
          text '&Recent'
          menu_item {
            text 'File 1'
            on_widget_selected {
              message_box(shell_proxy) {
                text 'File 1'
                message 'File 1 Contents'
              }.open
            }
          }
          menu_item {
            text 'File 2'
            on_widget_selected {
              message_box(shell_proxy) {
                text 'File 2'
                message 'File 2 Contents'
              }.open
            }
          }
        }
      }
    }
  }
}.open

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
glimmer-dsl-swt-0.6.9 samples/hello/hello_pop_up_context_menu.rb
glimmer-dsl-swt-0.6.8 samples/hello/hello_pop_up_context_menu.rb
glimmer-dsl-swt-0.6.7 samples/hello/hello_pop_up_context_menu.rb
glimmer-dsl-swt-0.6.6 samples/hello/hello_pop_up_context_menu.rb
glimmer-dsl-swt-0.6.5 samples/hello/hello_pop_up_context_menu.rb
glimmer-dsl-swt-0.6.4 samples/hello/hello_pop_up_context_menu.rb