Welcome, Guest
Username: Password: Remember me
CodeTyphon MS Windows (Win7, Win8.x, Win10 and Win11) OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

Problem with Application.run 5 hours 4 minutes ago #19335

  • AlainF
  • AlainF's Avatar Topic Author
  • Away
  • Junior Member
  • Junior Member
  • Posts: 25
  • Thank you received: 0
I think there is problem with this part of code :(application.inc ; line 1440)
procedure TApplication.Run;
begin

  if (FMainForm <> nil) and FShowMainForm then
  begin
    WidgetSet.AppSetupMainForm(FMainForm);
    FMainForm.Show;
  end;

  WidgetSet.AppRun(@RunLoop);
end;


If you want your main form isn't visible,because she's managed with trayicon,  you can't.
Try it with simple code : create a new application et put "self.visible:=false" in the create procedure. The form is always visible. 

Please Log in or Create an account to join the conversation.

  • Page:
  • 1