Forum: FXRuby FXTable - iterating through headers

Posted by Patrice Mannes (ymeth)
on 2009-08-23 17:57
Hi,

my question concerns FXHeaders in an FXTable
As the title says I'm trying to iterate through each header in order to
get it's text. However, im getting some very strange errors (that is:
strange to me).

Here is the code:

def generate_view(p)
  @tabelle.columnHeader.each do |header|
  x = header.position
  foo = header.getItemText(x)
  end
end

When the method gets called, the compiler says:  "undefined method
`position' for :Fox::FXHeaderItem (NoMethodError)"

Now, I'm relatively new to programming, so this might be a completely
dumb question, but where is my mistake?

Thanks
Patrice
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.