«« Site Rescued »»

While the site is still going to move from its current host, a new site will now take its place. More Info.

The new site may have less content, but the core will now remain. And it will now play nicely with phones! Keep an eye on the DelphiDabbler Blog for news.

» Help

Change the Delphi Object Inspector font size

   

I came upon this code below and thought it might be useful to others whose eyes are getting older. It makes the Object inspector font size increase to whatever suits.

It works great and the messagebox can be dispensed with.

unit AdjustOIFont;
 
interface
 
procedure Register;
 
implementation
 
uses
  Windows, Classes, Graphics, Controls, Forms;
 
procedure Register;
var
  I: Integer;
begin
  for I := 0 to Screen.CustomFormCount - 1 do
    if Screen.CustomForms[I].Name = 'PropertyInspector' then
    begin
      Screen.CustomForms[I].Font.Size := 14; // or whatever you prefer
      // Remove MessageBox once this works OK.
      MessageBox(0, 'Adjusted Object Inspector font', 'Debug', MB_OK);
      Exit;
    end;
end;
 
end.
Author: Mike Fletcher
Added: 2013-06-02
Last updated: 2013-06-02

« Return to contents »