Text (string) input from hoc created GUIs

Anything that doesn't fit elsewhere.
Post Reply
shaul
Posts: 2
Joined: Tue Jan 09, 2007 12:30 pm

Text (string) input from hoc created GUIs

Post by shaul »

I am writing a GUI in NEURON to facilitate some of the operations I often perform. Using the GUI commands (xbutton and that family) one can create a "get a number " input through the GUI commands (4, 6 etc'). However I could not see the equivalent for getting a string from the user which would be very useful for me. There is an option to pop up a window but is there an equivalent of the number way of doing this?
ted
Site Admin
Posts: 6384
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Post by ted »

You're probably referring to string_dialog()--see
http://www.neuron.yale.edu/neuron/stati ... ing_dialog
But isn't this "the equivalent for getting a string from the user"?
shaul
Posts: 2
Joined: Tue Jan 09, 2007 12:30 pm

Post by shaul »

I was ineed referring to string_dialog(). I thought perhaps there is an option to do this without popping up a dialogue box. Just as the xvalue function can get a number from the user without the need for a popup.
ted
Site Admin
Posts: 6384
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Post by ted »

hoc does not have such a feature.
Post Reply