From: Kevin S. <kev...@ya...> - 2001-09-05 15:39:59
|
--- Takaaki Tateishi <tt...@ja...> wrote: > I've added the FN_GROUP_INIT and modified > Fltk::Group#begin > so that we can use the block instead of Group#end. > > For example, we can write the following code: > > Fltk::Pack.new(300,200){|pack| > ... > } Great idea. Similarly, for Buttons (and perhaps other widgets like inputs) I would like to be able to pass a block to new that becomes the callback. Most pushbuttons don't need any other information besides what to do when you push them. Kevin __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com |