DoctorBean
DoctorBean

Reputation: 105

How can I change the fontsize of the mainmenu items in Delphi?

One would think that there would be a Font property for MainMenu, since there is one for just about everything else e.g. Buttons, Labels, etc.

Upvotes: 7

Views: 14873

Answers (2)

Andreas Rejbrand
Andreas Rejbrand

Reputation: 108929

Write, for instance,

procedure TForm2.FormCreate(Sender: TObject);
begin
  Screen.MenuFont.Name := 'Arial Black';
end;

and make sure that the OwnerDraw property of your TMainMenu is set to true.

Upvotes: 14

Remy Lebeau
Remy Lebeau

Reputation: 595339

Look at the TScreen.MenuFont property.

Upvotes: 3

Related Questions