Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To recognize the :enter key pressed in the edit_line area, improved t…
…he code of windows.c with the subclassing technique. Now when you press the :enter key in the edit_line area, Shoes.hook method will be launched. You can overwite the method as you like in your Shoes app. A sample snippet is here: def Shoes.hook $app.instance_eval{alert @msg.text} end $app = Shoes.app :width => 400, :height => 150 do edit_line{|el| @msg.text = el.text} @msg = para end Reference to http://www.arcpit.co.jp/winapi/api_02/ap020108.htm (in Japanese)
- Loading branch information