molovol / MoloVol

MoloVol is a free, cross-plattform, scientific software for volume and surface computations of single molecules and crystallographic unit cells.
https://molovol.com
MIT License
22 stars 4 forks source link

Add drop down control for probe 1 input #99

Closed jmaglic closed 3 years ago

jmaglic commented 3 years ago

As we've already had two testers asking for this feature, I've decided to quickly implement it. You will notice that the parentheses remain after the selection. This is luckily no issue, because std::stod just ignores them. I wanted to make them disappear upon selection, but wxComboBox is unfortunately not perfectly reliable when it comes to the item-selection event.

Feel free to add any options you think are necessary.

jmaglic commented 3 years ago

I noticed that your additions to the drop down menu made the GUI a bit wider for me. The GUI scaled up in order to fit the options in the box.

rlavendomme commented 3 years ago

I noticed that your additions to the drop down menu made the GUI a bit wider for me. The GUI scaled up in order to fit the options in the box.

I noticed that too. This is why I put (N2 sphere rad.) instead of (N2 spherical radius). It makes sense that it works like that but I don't know if we can make a drop down menu with an initial small box but larger display of the drop down list.