How do I remove a TableColumn from a table [message #443922] |
Mon, 04 October 2004 15:33 |
Eclipse User |
|
|
|
Originally posted by: news0reader.hotmail.com
Hi, how do I remove a TableColumn from a table? I tried getting all
columns and then calling TableColumn::dispose()...but it did n't work, in
that when I add more columns to the table the old ones (the ones on which
I called dispose()) still remain.
Thanx
--A
|
|
|
Re: How do I remove a TableColumn from a table [message #443932 is a reply to message #443922] |
Mon, 04 October 2004 16:40 |
Eclipse User |
|
|
|
Originally posted by: H.Drewes.web.de
Hello,
you can use table.remove(int index) to remove the TableItem with the
specified index. Unfortunately, I think there isn't a method like
table.remove(TableItem item), so if you don't know the index number of
your TableItem, there's possibly only the way to remove all items
with table.removeAll() and redraw the hole table. I actually did it
like this in a project of mine.
Holger
news wrote:
> Hi, how do I remove a TableColumn from a table? I tried getting all
> columns and then calling TableColumn::dispose()...but it did n't work, in
> that when I add more columns to the table the old ones (the ones on which
> I called dispose()) still remain.
>
> Thanx
>
> --A
>
|
|
|
|
Re: How do I remove a TableColumn from a table [message #443937 is a reply to message #443932] |
Mon, 04 October 2004 17:37 |
Eclipse User |
|
|
|
Originally posted by: news0reader.hotmail.com
Holger,
Thanx for the response, but as far as I know a TableItem is a "table row,"
whereas I want to remove a TableColumn, a column.
--A
"Holger Drewes" <H.Drewes@web.de> wrote in message
news:cjru5k$4f2$1@eclipse.org...
> Hello,
> you can use table.remove(int index) to remove the TableItem with the
> specified index. Unfortunately, I think there isn't a method like
> table.remove(TableItem item), so if you don't know the index number of
> your TableItem, there's possibly only the way to remove all items
> with table.removeAll() and redraw the hole table. I actually did it
> like this in a project of mine.
>
> Holger
>
>
> news wrote:
>
> > Hi, how do I remove a TableColumn from a table? I tried getting all
> > columns and then calling TableColumn::dispose()...but it did n't work,
in
> > that when I add more columns to the table the old ones (the ones on
which
> > I called dispose()) still remain.
> >
> > Thanx
> >
> > --A
> >
|
|
|
Re: How do I remove a TableColumn from a table [message #443945 is a reply to message #443935] |
Mon, 04 October 2004 21:21 |
Eclipse User |
|
|
|
Originally posted by: news0reader.hotmail.com
Veronika,
Yes, it should work...and in a pared-down example I wrote to post here it
*does* work. So my problems must lie elsewhere. Let me investigate some
more.
Thanx
--A
"Veronika Irvine" <veronika_irvine@oti.com> wrote in message
news:cjrv9e$6md$1@eclipse.org...
> TableColumn.dispose() should work. What platform are you using? Can you
> give a code example that fails?
>
> "news" <news0reader@hotmail.com> wrote in message
> news:cjrqgj$s6a$1@eclipse.org...
> > Hi, how do I remove a TableColumn from a table? I tried getting all
> > columns and then calling TableColumn::dispose()...but it did n't work,
in
> > that when I add more columns to the table the old ones (the ones on
which
> > I called dispose()) still remain.
> >
> > Thanx
> >
> > --A
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03435 seconds