Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 335
DoctorBean Avatar asked May 01 '10 13:05

DoctorBean


2 Answers

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.

like image 101
Andreas Rejbrand Avatar answered Nov 12 '22 04:11

Andreas Rejbrand


Look at the TScreen.MenuFont property.

like image 1
Remy Lebeau Avatar answered Nov 12 '22 05:11

Remy Lebeau