Automatic resizing of MViewPane according to molecule size

User 6e867c1849

04-10-2004 18:41:01

Hi Everybody,


I am trying to draw a molecule then color some of the atoms and then dump a image file of that colored molecule. I have managed to dump a image from MViewPane. The problem is that I cannot figure out how to automatically resize the MViewPane's dimensions depending on the molecule size. Any pointer will be greatly appreciated.


Chemaxon guys you have a great application here!!


Thanks


-Raj

ChemAxon 7c2d26e5cf

05-10-2004 10:40:50

raj wrote:
Hi Everybody,


I am trying to draw a molecule then color some of the atoms and then dump a image file of that colored molecule. I have managed to dump a image from MViewPane. The problem is that I cannot figure out how to automatically resize the MViewPane's dimensions depending on the molecule size. Any pointer will be greatly appreciated.


Chemaxon guys you have a great application here!!


Thanks


-Raj
You can not resize MViewPane automatically. But MViewPane always changes the scalling factor to fit the molecule into the cell when a molecule is loaded-in.