GUI component interaction: Difference between revisions
Content added Content deleted
Line 3,487: | Line 3,487: | ||
fn (mut app App) btn_click_ran(mut btn ui.Button) { |
fn (mut app App) btn_click_ran(mut btn ui.Button) { |
||
ui.message_box( |
ui.message_box("Will jump to random number between 1 and 100.") |
||
app.counter = rand.int_in_range(1, 100) or {0}.str() |
app.counter = rand.int_in_range(1, 100) or {0}.str() |
||
} |
} |