SPECIAL OFFER        Order and save right now!
20% off with the 729824315 dicscount code for Ultimate Pack and any another product for Delphi from Greatis Programming!

⤷ Set button multi-line caption

You may use SetWindowLong function with BS_MULTILINE parameter to set multi line caption of some button.

procedure TForm1.Button1Click(Sender: TObject);
var
  TempButton: LongInt;
begin
  TempButton:=GetWindowLong(Button1.Handle, GWL_STYLE);
  SetWindowLong(Button1.Handle, GWL_STYLE, TempButton or BS_MULTILINE);
end;
More for developers
Databases for Amazon Associates
Amazon Categories
Amazon Nodes