samples/hello/hello_menu_bar.rb in glimmer-dsl-tk-0.0.50 vs samples/hello/hello_menu_bar.rb in glimmer-dsl-tk-0.0.51

- old
+ new

@@ -155,19 +155,27 @@ menu(label: 'Language', underline: 3) { ['denmark', 'finland', 'france', 'germany', 'italy', 'mexico', 'netherlands', 'norway', 'usa'].each do |image_name| menu_item(:radiobutton, label: image_name.capitalize) { selection image_name == 'usa' image File.expand_path("images/#{image_name}.png", __dir__) + + on('command') do + message_box(parent: r, title: 'Language Selection', message: "You selected the language of #{image_name.capitalize}!") + end } end } menu(label: 'Country', underline: 0) { ['denmark', 'finland', 'france', 'germany', 'italy', 'mexico', 'netherlands', 'norway', 'usa'].each do |image_name| menu_item(:radiobutton, label: image_name.capitalize) { selection image_name == 'usa' image File.expand_path("images/#{image_name}.png", __dir__) compound 'left' + + on('command') do + message_box(parent: r, title: 'Country Selection', message: "You selected the country of #{image_name.capitalize}!") + end } end } menu(label: 'Format', underline: 3) {