Page 1 of 1

unhiding the main menu?

Posted: Wed Dec 14, 2005 12:26 pm
by ashlan
In my recent windows version of NEURON, the Main Menu created by calling "nrnmainmenu()" has a "Hide" button instead of the old "Iconify" button.

The trouble is, "Hide" makes only the Main Menu window disappear, taking the "Window" menu (to unhide windows) with it.

As far as I can tell, it cannot be easily un-hidden or recreated - definitely not with a second call to nrnmainmenu(). One work around:
oc>mapped_nrnmainmenu_=0
oc>nrnmainmenu()
brings the menu back, but the subsequent File and Print Window Manager interface is very distorted.

Trivial as it may seem, the Iconify button was a nice way to minimize the entire workspace and old habits die hard. I decided to post this problem on the 10th time I accidentally hid the menu trying to minimize the workspace.

Is there an easy way to get the Main Menu back without messing up the File and Print Window Manager?

Thanks, Ashlan

Posted: Thu Dec 15, 2005 7:01 am
by hines
Make sure the first statement executed by your hoc program is
load_file("nrngui.hoc")
The rule is that the first created window is the controlling window for the entire program and that window is given the iconify button instead of (close, hide) buttons.