From: Takaaki T. <tt...@kt...> - 2002-04-07 01:30:20
|
At Sat, 6 Apr 2002 20:44:56 +0100 (BST), Stephen Davies wrote: > First: can I ask for find_item to be exposed in ruby_fltk? Without it its > a lot of work to map a click to the right item. No, the method "find_item" is not provided by ruby-fltk-0.7.1. Today I added multiple methods. If you want to use ruby-fltk which has Browser_#find_item, obtain it using cvs. > Secondly: how can I stop the scrollbar taking the focus when its clicked > on? I'd like clicks on the scrollbar to do their thing, but without > moving the focus - I've got handling for the cursor keys in my handle(), > but the scrollbar steals them if it has the focus. How about handling the event FLTK::PUSH? def handle(e) case e when FLTK::PUSH return false # or true else return super(e) end end -- Takaaki Tateishi <tt...@kt...> |