Technical Support Forum Index
Technical Support Forum
Access ChemAxon scientists and developers here. For registration and login issues contact website support.

Support Ticket System is replacing forum

This forum was converted into a searchable archive. You cannot add posts here any more. For support please use our new Ticket System.

Create your first ticket
TableSupport.setCellSize
To watch this topic for replies  Register (enables digests) or give email address:
This topic is locked: you cannot edit posts or make replies.
Display posts from previous:   
    View previous topic :: View next topic    
Author Message
Charlie

Joined: 14 Mar 2003
Posts: 59

View user's profile

Back to top
Link to postPosted: Thu Jul 23, 2009 9:13 pmPost subject: TableSupport.setCellSize Reply with quote

Hello,

We're using Marvin 5.2.3.  In Marvin API, it seems that setCellSize method in TableSupport class does not work as expected.  No matter what kind of dimension gets passed in, the molecule stays at one size.

Is there any way to make the table cell bigger programmatically when a SD file is loaded?

Thanks!

pvadasz

Joined: 24 Nov 2005
Posts: 96

View user's profile

Back to top
Link to postPosted: Fri Jul 24, 2009 7:13 pmPost subject: Reply with quote

Hello,

The setCellSize method sets the cell size in the table, but do not update the viewer. Loading the molecule after using the setCellSize method, or calling the enqueueUpdate method afterwards should update the molecule - and the size - too.

If these solutions does not work please send an example code, and we will check the bug.

Best Regards,

Peter

Charlie

Joined: 14 Mar 2003
Posts: 59

View user's profile

Back to top
Link to postPosted: Tue Jul 28, 2009 3:02 pmPost subject: Reply with quote

Hello,

It still does not work. Can you please use the code example below and show me how I can change the cell size via code (in spreadsheet view)?

http://www.chemaxon.com/marvin/examples/beans/view-table/ViewTable.java.html

 

Thanks!

 

cspeter
ChemAxon personnel
Joined: 24 Jun 2004
Posts: 135

View user's profile

Back to top
Link to postPosted: Thu Jul 30, 2009 12:03 pmPost subject: Reply with quote

Hi,

No way, setCellSize is for GridBagView, not SpreadsheetView. I fixed the API doc. SpreadsheetView column width and row height cannot be set currently but I created TableOptions.setRowHeight and setColumnWidth for Marvin 5.2.4.

Charlie

Joined: 14 Mar 2003
Posts: 59

View user's profile

Back to top
Link to postPosted: Thu Jul 30, 2009 3:28 pmPost subject: Reply with quote

Thanks!   When will Marvin 5.2.4 be released?

Akos
ChemAxon personnel
Joined: 09 Mar 2007
Posts: 864

View user's profile

Back to top
Link to postPosted: Mon Aug 03, 2009 4:25 pmPost subject: Reply with quote

Hi,

5.2.4 is scheduled to August 10.

Best regards,

Akos

Charlie

Joined: 14 Mar 2003
Posts: 59

View user's profile

Back to top
Link to postPosted: Tue Aug 18, 2009 5:18 pmPost subject: Reply with quote

Hello,

We have tried setColumnWidth method in Marvin 5.2.4.  But this method does not change the width of structure column.  Is there any way to change the width of structure column?

Thanks!

Erika
ChemAxon personnel
Joined: 12 Oct 2005
Posts: 293

View user's profile

Back to top
Link to postPosted: Thu Aug 20, 2009 2:31 pmPost subject: Reply with quote

Hello,


We need some more time to check the problem, since August 20-21 are National Holidays in Hungary. In the meantime, could you send us a code example of the usage of the above mentioned method?

Best Regards,
Erika

 

Charlie

Joined: 14 Mar 2003
Posts: 59

View user's profile

Back to top
Link to postPosted: Thu Aug 20, 2009 10:30 pmPost subject: Reply with quote

For code example, please find the line "TableOptions tblopts = tableSupport.getTableOptions();" in the code below.

http://www.chemaxon.com/marvin/examples/beans/view-table/ViewTable.java.html

 

Then change it to the follow:

TableOptions tblopts = tableSupport.getTableOptions();

tblopts.setColumnWidth(200);

You'll see that the width of structure/molecule column is not changed.

 

Thanks!

 

 

 

 

 

 

Erika
ChemAxon personnel
Joined: 12 Oct 2005
Posts: 293

View user's profile

Back to top
Link to postPosted: Tue Aug 25, 2009 8:37 pmPost subject: Reply with quote

Hello,



Apologies for the late answer. We could reproduce it and we will try to fix the problem.

We will notify you as soon as we find a solution.



Best regards,

Erika.

Charlie

Joined: 14 Mar 2003
Posts: 59

View user's profile

Back to top
Link to postPosted: Tue Aug 25, 2009 8:45 pmPost subject: Reply with quote

OK.  Maybe you can add another method called "setMoleculeColumnWidth" since there are two underlying tables in the object.  It'll be up to users to choose the desired method.

Thanks!

cspeter
ChemAxon personnel
Joined: 24 Jun 2004
Posts: 135

View user's profile

Back to top
Link to postPosted: Sat Aug 29, 2009 8:53 pmPost subject: Reply with quote

Fixed TableOptions.setColumnWidth(int) to change the default width in the left table too and created a two-argument version, setColumnWidth(int column, int w). Marvin 5.2.5 will contain the bugfix and the new method.

This topic is locked: you cannot edit posts or make replies.
Page 1 of 1


To watch this topic for replies   Register (enables digests) or give email address  
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum