如何让按钮上的字,竖起来  50分
  像这样
 ____
 |5 |
 |0 |
 |分|
 |__|

解决方案 »

  1.   

    button1.caption := '5'#13'0'#'分';
      

  2.   

    button1.caption :='5'+#13+'0'//不可
     SpeedButton1.Caption:='5'+#13+'0'//可以
     BitBtn1 .Caption:='5'+#13+'0'//可以
      

  3.   

    button1.caption  
    下面这样也可以procedure TForm1.Button2Click(Sender: TObject);
    var
        i:integer;
    begin
        i:=GetWindowLong(button1.Handle,GWL_STYLE);
        SetWindowLong(button1.Handle,GWL_STYLE,i or BS_MULTILINE);
        button1.Caption:='5'+#13#10+'0'+#13#10+'分';
    end;