[fxruby-users] setting widget attributes

Meinrad Recheis meinrad.recheis at gmail.com
Tue Mar 28 16:31:02 EST 2006


On 3/28/06, Meinrad Recheis <meinrad.recheis at gmail.com> wrote:
> On 3/28/06, Mark Volkmann <r.mark.volkmann at gmail.com> wrote:
> > I'm trying to set attributes of widgets in subclasses like the following.
> >
> > class PersonTable < FXTable
> >   def initialize(owner)
> >     options = TABLE_COL_SIZEABLE
> >     super(owner, nil, 0, options)
> >
> >     visibleRows = 5
> >     ...
> >   end
> > end
> >
> > visibleRows doesn't get set.
> > However, if I do this
> >
> > self.visibleRows = 5
> >
> > then it does.
> >
> > Shouldn't it work without "self."?
>
> that's a common problem with ruby extensions. but i don't understand
> the underlying principle ;)

thanks to joel now i do :D



More information about the fxruby-users mailing list