Autor Beitrag
arnydaniel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 80

hoffentlich bald Linux
Delphi 6
BeitragVerfasst: Di 20.09.05 19:48 
Hi,

ist es möglich dass ich eine Label senkrecht schreibe?
Also nicht "hallo", sondern
"h
a
l
l
o"?

Gruß

_________________
Wenn jeder nur an sich denkt, wird an jeden gedacht.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Di 20.09.05 19:52 
So:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
label1.caption := 
    'H' + #13#10+ 
    'a' + #13#10+ 
    'l' + #13#10+ 
    'l' + #13#10+ 
    'o';


gf. Die Größe des Labels entsprechend anpassen, z.B. Autosize auf True

_________________
We are, we were and will not be.
matze.de
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 576

Win95, Win98 SE, WinXp Prof SP2
D7P, D8P, FPC2.0
BeitragVerfasst: Mi 21.09.05 11:46 
Würde aber allgemeiner machen:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure SetVerticalCaption(ALabel: TLabel; AText: String);
var i: integer;
begin
    ALabel.Caption := '';
    for i := 1 to Length(AText) do
        ALabel.Caption := ALabel.Caption + AText[i] + #13#10;
end;


mfg matze

_________________
si tacuisses, philosophus mansisses.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mi 21.09.05 11:57 
Man kann aber auch direkt anweisen, den Text zu drehen: www.swissdelphicente...showcode.php?id=1596

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Mi 21.09.05 12:00 
BenBe dann stehen die Buchstaben aber nicht mehr untereinander. die sind dann wirlkich um 90° gedreht.
ich weiß ja nicht was der threadersteller eher haben will

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit