unhiding the main menu?

Anything that doesn't fit elsewhere.
Post Reply
ashlan
Posts: 1
Joined: Tue Jun 07, 2005 3:38 pm

unhiding the main menu?

Post 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
hines
Site Admin
Posts: 1711
Joined: Wed May 18, 2005 3:32 pm

Post 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.
Post Reply