default tool

User 870ab5b546

13-04-2015 12:54:30

You show an example wherein the programmer can set the default tool of the selection group to rectangle or lasso. 


var tool = "rectangleSelection"; // or lassoSelection
marvinSketcherInstance.setDisplaySettings({"defaultTool": tool});

The example is not at all clear on whether "default tool" refers to the selected tool within only the selection group or to the selected tool within any group.


If it refers to the selected tool within any group, I want to change the default tool of the bond group to the pencil, and the default tool of the electron-flow arrow group to the two-electron arrow. Is it possible? What values do I use for tool in the code above?

ChemAxon f052bdfe3c

13-04-2015 15:43:34

I am sorry that the example is not clear. The "default tool" refers to the selected tool within only the selection group. Thank you for highlighting that it can be misleading, we will improve the documentation.


Best regards,


Efi

User 870ab5b546

13-04-2015 15:54:43

Well, can you add a similar function for the other button groups? It would be very, very helpful. 

ChemAxon f052bdfe3c

15-04-2015 13:01:01

We are considering to add this function to other button as well when we can find the capacity to work a bit on the UI features.


Best regards,


Efi

User 870ab5b546

15-04-2015 14:54:42

Meanwhile, can you at least make the two-electron arrow the default one in the electron-flow arrow group? I can't imagine it would take you more than 15 seconds to make that change. I assure you, all your customers who use this feature will be very grateful.

ChemAxon f052bdfe3c

16-04-2015 13:04:59

"can you at least make the two-electron arrow the default one in the electron-flow arrow group"


Yes. We do this. It will be released in about two weeks based on our workflow. (The attached picture shows the current developer version


Best regards,


Efi

User 870ab5b546

16-04-2015 13:25:29

Great! Thanks! I see a text box tool there, also. Will that function be available in two weeks as well?

ChemAxon f052bdfe3c

16-04-2015 14:17:31

" I see a text box tool there, also. Will that function be available in two weeks as well?"


It is the plan. We are in the testing-bugfixing stage.


Best regards,


Efi

User 646de8ab9c

23-04-2015 09:59:16










ehoffmann wrote:

" I see a text box tool there, also. Will that function be available in two weeks as well?"


It is the plan. We are in the testing-bugfixing stage.


Best regards,


Efi



Great!!


Lionel