wsMaximized forms do not appear maximized

I Can reproduce with D7/Win7. I don’t use wsMaximized at all (similar random problems as you describe). Workaround: use OnActivate -> ShowWindow(Handle, SW_MAXIMIZE) e.g.: procedure TForm1.FormActivate(Sender: TObject); begin // Maximize only once when the Form is first activated if not FMaxsimized then begin FMaxsimized := True; ShowWindow(Handle, SW_MAXIMIZE); end; end; This method will not work … Read more

Delphi: Understanding constructors

I see two reasons your original set of declarations shouldn’t compile cleanly: There should be a warning in TCellPhone that its constructor hides the method of the base class. This is because the base-class method is virtual, and the compiler worries that you’re introducing a new method with the same name without overriding the base-class … Read more

Delphi: What is Application.Handle?

The reason for the application window has a bit of a sordid history. When developing Delphi 1, we knew we wanted to use “SDI” (windows scattered all over the desktop) ui model for the IDE. We also knew that Windows sucked (and still does) at that model. However we also noticed that Visual Basic at … Read more