Sha256: 00093ac14c943d1ef16da1bac2dfc4d2655d4a509cedf5467bd6636817ee338f

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 KB

Contents

include Glimmer

shell {
  text "User Profile"

  composite {
    grid_layout 2, false

    group {
      text "Name"
      grid_layout 2, false
      layout_data :fill, :fill, true, true
      label {text "First"}; text {text "Bullet"}
      label {text "Last"}; text {text "Tooth"}  
    }

    group {
      layout_data :fill, :fill, true, true
      text "Gender"
      radio {text "Male"; selection true}
      radio {text "Female"}  
    }

    group {
      layout_data :fill, :fill, true, true
      text "Role"
      check {text "Student"; selection true}
      check {text "Employee"; selection true}  
    }

    group {
      text "Experience"
      row_layout
      layout_data :fill, :fill, true, true
      spinner {selection 5}; label {text "years"}
    }

    button {
      text "save"
      layout_data :right, :center, true, true
      on_widget_selected { 
        message_box {
          text 'Profile Saved!'
          message 'User profile has been saved!'
        }.open 
      }
    }

    button {
      text "close"
      layout_data :left, :center, true, true
      on_widget_selected { exit(0) }
    }
  }
}.open

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
glimmer-dsl-swt-0.6.9 samples/elaborate/user_profile.rb
glimmer-dsl-swt-0.6.8 samples/elaborate/user_profile.rb
glimmer-dsl-swt-0.6.7 samples/elaborate/user_profile.rb
glimmer-dsl-swt-0.6.6 samples/elaborate/user_profile.rb