[wxruby-users] copy & paste event

Alex Fenton alex at pressure.to
Fri Mar 7 05:43:11 EST 2008


Pat Kiatchaipipat wrote:
> tb.add_tool(ID_COPY, "Copy", ArtProvider::get_bitmap(ART_COPY))
>
> but when I click it can't copy some text
> what's wrong :'(
>   
Add something like

evt_tool(Wx::ID_COPY) :on_copy

then create a method like:

def on_copy
  text_box.copy
end

alex



More information about the wxruby-users mailing list