Making a Text Control selected once user hits a button

I want it so that when a user hits a button, that a text control is
selected and they can just start typing away and update the text
control. Is there anyway to do this?

evt_button(button) do
@edit_control.set_focus
end

hth