[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #2946: Settings is no longer working, it doesn't create the file or update the old one


http://gambaswiki.org/bugtracker/edit?object=BUG.2946&from=L21haW4-

Comment #4 by Bruce STEERS:

If you set the main form to be the Application.MainWindow then all the other windows should automatically close without you using Quit.
Ie.
Application.MainWindow = FMain

There is always a problem that needs addressing if you have to use Quit to close properly.

If an older gambas version then Application.MainWindoow may not work so you could use code like this...

Public Sub Form_Close()

  For Each w As Window In Windows
    If w.Name <> Me.Name Then w.Close
  Next

End

I will add to the wiki about using Settings.class and Quit


----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----