From: Takaaki T. <tt...@kt...> - 2002-01-02 13:29:41
|
At Wed, 2 Jan 2002 11:53:07 +0000 (GMT), Stephen Davies <st...@da...> wrote: > Now - how do I get to the color and color() instance methods having > included Drawable, which has its own color() that calls Fltk::color...? I will define an alias 'widget_color' of Widget#color(). You can also define an alias by yourself like this: class MyBrowser < FLTK::Browser_ alias widget_color color # should be defined before Drawable include FLTK::Drawable Now you can use widget_color. b = MyBrowser.new(5,5,90,90,items) b.widget_color(FLTK::RED) -- Takaaki Tateishi <tt...@kt...> |