Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse-dev] Table not being drawn properly in a view?


First, create an swt snippet that shows the problem.
You can use the following snippet as a starting point:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/snippits/snippet144.html
Then, please ask your question on the SWT newsgroup:

>> news://news.eclipse.org/eclipse.platform.swt


If you cannot show the problem with an swt snippet, then please ask your question on the eclipse.platform newsgroup.
Carolyn



Marc Boorshtein <marc.boorshtein@xxxxxxxxxxxxxxx>
Sent by: eclipse-dev-admin@xxxxxxxxxxx

06/14/2004 06:08 PM

Please respond to
eclipse-dev

To
eclipse-dev@xxxxxxxxxxx
cc
Subject
Re: [eclipse-dev] Table not being drawn properly in a view?





I tried your suggestion of calling dispose with the following sequence:

results.clearAll();
TableColumn[] tc =results.getColumns();
for (int i=0,m=tc.length;i++) {
   tc.dispose();
}
results.clearAll();
//add contents
.
.
.
results.redraw();
parent.pack();

In this case the original problem still exists, the table does not  
properly resize its self AND even though the table is declared as  
virtual and the data is being cleared there are numerous empty lines at  
the beginning of the table.   Am I missing something here?

------------------------------------------------------------------------
--------------------------
Marc Boorshtein
Sr. Software Engineer, Octet String
marc.boorshtein@xxxxxxxxxxxxxxx
On Jun 14, 2004, at 4:41 PM, Marc Boorshtein wrote:

> I actually figured because I was having the issue inside of a view,  
> while in an SWT application it work flawlessly, that this would be the  
> place to ask.  I actually did pack all of the columns (and the parent  
> as well).  The only time the table would draw correctly was when  
> either the view was resized or the entire window was refreshed.  I'll  
> try disposing the columns too, probably a better solution anyway.  
> Thanks for the help!
>
> -----------------------------------------------------------------------
> ---------------------------
> Marc Boorshtein
> Sr. Software Engineer, Octet String
> marc.boorshtein@xxxxxxxxxxxxxxx
> On Jun 14, 2004, at 10:19 AM, Carolyn MacLeod wrote:
>
>>
>> You can remove columns - use TableColumn.dispose().
>> For your resize problem, try packing your columns using  
>> TableColumn.pack().
>>
>> In future, please use the newsgroups for user questions. Read about  
>> the newsgroups here:
>> http://www.eclipse.org/newsgroups/index.html
>>
>> Table is an SWT class, so your correct choice of newsgroup for this  
>> particular question would have been:
>> news://news.eclipse.org/eclipse.platform.swt
>>
>> Carolyn
>>
>>
>>
>>
>>
>> Marc Boorshtein <marc.boorshtein@xxxxxxxxxxxxxxx>
>>
>> Sent by: eclipse-dev-admin@xxxxxxxxxxx
>>
>>
>> 06/12/2004 11:19 AM
>>
>>
>> Please respond to
>>
>>  eclipse-dev
>>
>>
>>
>>
>> To
>>
>> eclipse-dev@xxxxxxxxxxx
>>
>>
>> cc
>>
>>
>> Subject
>>
>> [eclipse-dev] Table not being drawn properly in a view?
>>
>>
>>
>>
>>
>>
>>
>>
>> Hello,
>>
>>  I am trying to use a table inside of an eclipe view to represent a  
>>  database table.  Because I can't remove columns, in SWT apps I have  
>>  destroyed and re-built the table every time I refresh the table.  In  
>>  
>>  this case when the table refreshes, it doesn't re-size it's self  
>>  properly on a "pack(true)" of it's self or it's parent composite.  
>>  If I  
>>  resize the view, it corrects it's self though.  Am I missing  
>>  someinthing?
>>
>>  Thanks!
>>
>>  
>> ----------------------------------------------------------------------
>> --
>>  --------------------------
>>  Marc Boorshtein
>>  Sr. Software Engineer, Octet String
>>  marc.boorshtein@xxxxxxxxxxxxxxx
>>
>>  _______________________________________________
>>  eclipse-dev mailing list
>>  eclipse-dev@xxxxxxxxxxx
>>  To change your delivery options, retrieve your password, or  
>> unsubscribe from this list, visit
>>  http://dev.eclipse.org/mailman/listinfo/eclipse-dev
>>


Back to the top