Fórum Label na vertical #182873
18/09/2003
0
Dá para deixar uma label totalmente na vertical?
Janete
Curtir tópico
+ 0
Responder
Posts
18/09/2003
Ricna
Dá para deixar uma label totalmente na vertical?
procedure TForm1.Button1Click(Sender: TObject);
var
lf : TLogFont;
tf : TFont;
begin
Form1.Canvas.Font.Name := ´Arial´;
Form1.Canvas.Font.Size := 24;
tf := TFont.Create;
tf.Assign(Form1.Canvas.Font);
GetObject(tf.Handle, sizeof(lf), @lf);
lf.lfEscapement :=900; //inclinação
tf.Handle :=CreateFontIndirect(lf);
Form1.Canvas.Font.Assign(tf);
tf.Free;
Form1.Canvas.TextOut(100,300, label1.caption); //posição
end;
end.
Divirta-se;
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)