[wxruby-users] copy & paste event

Pat Kiatchaipipat lists at ruby-forum.com
Fri Mar 7 06:19:32 EST 2008


:'(

    tb.add_tool(ID_COPY, "Copy", ArtProvider::get_bitmap(ART_COPY))
    evt_tool(ID_COPY){|event| on_copy()}

    def on_copy()
      @textbox2.copy
    end

then I copy it's ok but it can copy only @textbox2 and and I have many 
textbox. how can I use it to copy only selected text not dependent 
textbox? I have @textbox1, @textbox2 and @textbox3
-- 
Posted via http://www.ruby-forum.com/.


More information about the wxruby-users mailing list