Page 1 of 1

dropdown menu

Posted: Tue May 02, 2006 4:14 am
by srikanth_rswamy
'm trying to build a GUI for synaptic diagnostics. Basically, what I'm trying to do is to have a GUI with the following parameters:
1. NetworkPath (displays the network path for my simulation)
2. Total no. of neurons (displays the total no. of neurons in my network)
3. MorphPath (displays the morphology path for the neurons)
4. CellPath (displays the .hoc files for all inhibitory and excitatory neurons in the neocortex)
5. SelectDestinationNeuron (This is the postsynaptic neuron on which various synapses converge)
6. layer (the various cortical layers)
7. MorphType (the various morphological classes of neurons)
8. ElectricalType (the various electrical classes)
9. ShowConnectedNeurons (shows all the presynaptic neurons converging on the destination neuron)

I would like to have a dropdown menu for all the above parameters, but using xvalue does not serve the pupose completely, as values can just be incremented or decremented using xvalue.

What function do I need to use to have a dropdown menu in my .hoc code?

Thanks
Srikanth

Posted: Tue May 02, 2006 8:36 am
by ted
AFAIK only the NEURON Main Menu toolbar offers dropdown menus.

Posted: Tue May 02, 2006 8:54 am
by srikanth_rswamy
thanks for the note. however, is there a way of choosing a file from a display window, say for instance something similar to the load hoc/load session functions under the File tab? this might perhaps be a workaround for what I'm looking to incorporate.

Thanks
Srikanth

Posted: Tue May 02, 2006 9:02 am
by hines
See http://www.neuron.yale.edu/neuron/stati ... html#xmenu
You are interested in the xpanel("menubar") ... xpanel()
fragment

Posted: Wed May 03, 2006 3:42 am
by srikanth_rswamy
Albeit not exactly a dropdown menu, the file chooser interface .chooser seems to work in a way. At least it offers a way to choose files.