[fxruby-users] setting widget attributes
meinrad.recheis at gmail.com
Tue Mar 28 16:12:12 EST 2006
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
> 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 ;)
More information about the fxruby-users