diff --git a/examples/hello/app/windows/lvguitesting.rb b/examples/hello/app/windows/lvguitesting.rb index a371c78a..043d3130 100644 --- a/examples/hello/app/windows/lvguitesting.rb +++ b/examples/hello/app/windows/lvguitesting.rb @@ -8,16 +8,35 @@ module GUI def initialize() super() - add_main_text(%Q{The different UI toolkit controls are shown here.\n\nThis is used to validate UI behaviour on different platforms.\n\n}) + add_main_text(%Q{The different UI toolkit controls are shown here.\n\nThis is used to validate UI behaviour on different platforms.\n}) + + LVGUI::HorizontalSeparator.new(@container) + + add_main_text(%Q{\nThe description label here will mirror the switch's value.\n}) # Add a toggle switch @switch = add_switch( "Toggle switch", - description: "This label will mirror its value in the description field after the first activation.", + description: "true", initial: true, ) do |new_state| @switch.set_description(new_state.inspect) end + + LVGUI::HorizontalSeparator.new(@container) + + add_main_text(%Q{\nThese items allow choosing among many options\n}) + + @select = add_select("Options selection", [ + [:A, "Option A"], + [:B, "Option B"], + [:C, "Option C"], + [:D, "Option D"], + #[:_Z, "An option with a label that is large enough to cause a line wrap"], + #[:_X, "Commas wrap snuggly,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"], + ]) do |new_state| + p new_state + end end end end