I am not familiar with lazarus, LuthfiHakim would be the person to ask about that.
Don't worry. When in GUI related task, lazarus is quite similar with Delphi, although there is slight different in menu placement. But up until now (on this topic) I find there is no significant difference between lazarus and Delphi.
@LuthfiHakim: Good advise, MainForm.Close. Thanks!
Well, only call Application.Terminate in "emergency" situation.
@BramS: to view the project source in lazarus, open menu Project then click menu item View source. It's actually viewing your lazarus project file.