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

How to embed a browser object, other than IE, in a Delphi application

TWebBrowser is IE. It is not a plugable construction for browsers. You can have other browsers integrated in your application. See http://www.adamlock.com/mozilla/ http://delphi.mozdev.org/articles/taming_the_lizard_with_delphi.html http://ftp.newbielabs.com/Delphi%20Gecko%20SDK/ Time has moved on This answer is from ’08 and since then time has moved on. The links don’t work anymore and there are probably better alternatives now.

What components and IDE add-ins do you install with Delphi? [closed]

My list: The Dev.Express Quantum grid: enhanced grid component: once you get the hang of this component, you can use it in all sorts of scenarios (at least I have) Dev.Express Quantum Tree list: if you know the grid component, you can use this component as well (treelist and grid combined) Dev.Express Express bars: menu … Read more

Are there any advantages in using const parameters with an ordinal type?

You need to understand the reason, to avoid “cargo-cult programming.” Marking strings as const makes a performance difference because you no longer need to use an interlocked increment and decrement of the refcount on the string, an operation that actually becomes more expensive, not less, as time goes by because more cores means more work … Read more

How do I declare an array when I don’t know the length until run time?

As of Delphi 4, Delphi supports dynamic arrays. You can modify their sizes at run time and they will retain the data you stored in other elements at the old size. They can hold elements of any homogeneous type, including records and other arrays. You can declare a dynamic array the same as you declare … Read more

How can I search for Delphi documentation? [closed]

You can navigate to the front page of the Embarcadero documentation and search from there. The link is: http://docwiki.embarcadero.com/RADStudio/en/Main_Page Note that no version is included in the link. If you navigate to that link then the site will re-direct you to a version specific URL for the latest release. In this case, as I write … Read more

How hard is it to migrate a project from Delphi 7 to Delphi XE?

The only real problem is conversion to Unicode. You should learn how Unicode support is implemented in Delphi – start from Marco Cantu White Paper: Delphi and Unicode It is impossible to estimate the amount of work required to upgrade old applications to Unicode without knowing the actual code. If you were using string types … Read more

What are good uses for class helpers?

I’m using them: To insert enumerators into VCL classes that don’t implement them. To enhance VCL classes. To add methods to the TStrings class so I can use the same methods in my derived lists and in TStringList. TGpStringListHelper = class helper for TStringList public function Last: string; function Contains(const s: string): boolean; function FetchObject(const … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)