Sorry if I am not putting this clearly but I hope I get the necessary details here.
I have several document type windows (all are .Show and not .ShowModal) that I open and closing with a menuItem Fileclose works fine usually.
I have Mainwindow that can open the Prefwindow. I also have the StrtUpPrefs, which will (re)sets which Ini file is used.
The Mainwindow has one menubar, while the other 2 use a smaller version.
The StrtUpPrefs is the first window, but if one wants to reset the Ini then what happens is
- Open the PrefWindow and press a button that opens the StrtUpPrefs window. (This action also closes the MainWindow).
- Reset the Ini file.
- Close the window - which should make the PrefWindow active and verify the Ini. Code is Self.Close for close.
The FileClose works correctly with StrtUpPrefs the first time.
What I know is happening on the 2nd time around with the FileClose is the StrtUpPrefs menu EnableMenuItems is not firing when it is opening.
It is firing when it was the only window.
Also, when this goes wrong, StrtUpPrefs is Window(0).
I know enough (I hope) to be sure I cannot make EnableMenuItems fire.
What am I missing?