Autor Beitrag
FinalFantasy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 127

Windows XP
Delphi 5 Professional, Visual Studio 7 .NET (C#)
BeitragVerfasst: Fr 18.11.05 09:42 
Hi,

Ich möchte einen Text vertikal ausgeben, z.B. auf einem Label. Am besten wäre aber, wenn es irgendwie über das Font-Object ginge, da man es so ja eigentlich auf so ziemlich jedem Control anwenden könnte.
Dass es irgendwie Möglich ist, ist mir klar, nur wie? :-)
ani
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 77

Windows Vista Home Premium
C#(VS 2008)
BeitragVerfasst: Fr 18.11.05 09:57 
am einfachsten gehts so -->

ausblenden C#-Quelltext
1:
label1.Text = "T\nE\nX\nT";					


:)
FinalFantasy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 127

Windows XP
Delphi 5 Professional, Visual Studio 7 .NET (C#)
BeitragVerfasst: Fr 18.11.05 09:59 
Man denkt einfach zu kompliziert :-D
Nein, eigentlich sollten auch die einzelnen Buchstaben um 90° gedreht sein.
ani
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 77

Windows Vista Home Premium
C#(VS 2008)
BeitragVerfasst: Fr 18.11.05 10:03 
haha das dacht ich mir, dass du das nicht meinst :)

dreh doch einfach das label dann um 90° :)
FinalFantasy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 127

Windows XP
Delphi 5 Professional, Visual Studio 7 .NET (C#)
BeitragVerfasst: Fr 18.11.05 10:12 
Wie dreht man denn ein Label?
Das muss aber doch auch irgendwie anders gehen... in einem Grid in einer Zelle hab ich nur den Text mit einer entsprechenden Font. Das muss man doch auch irgendwie vertikal ausgeben können.
ani
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 77

Windows Vista Home Premium
C#(VS 2008)
BeitragVerfasst: Fr 18.11.05 10:29 
Ich hab mal was gemacht, da wurden linien immer um 90° gedrecht, vielleicht geht das auch mit einem label, ich kann dirs ja schicken (word-doc) wenn du willst, und das programm auch


Zuletzt bearbeitet von ani am Fr 18.11.05 10:31, insgesamt 1-mal bearbeitet
FinalFantasy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 127

Windows XP
Delphi 5 Professional, Visual Studio 7 .NET (C#)
BeitragVerfasst: Fr 18.11.05 10:31 
Wäre nett. Vielleicht hilfts ja. Siehe PN
ani
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 77

Windows Vista Home Premium
C#(VS 2008)
BeitragVerfasst: Fr 18.11.05 11:29 
wenn du es hinbekommen hast, sag bescheid :)
FinalFantasy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 127

Windows XP
Delphi 5 Professional, Visual Studio 7 .NET (C#)
BeitragVerfasst: Fr 18.11.05 11:40 
Ok, die einzige Möglichkeit die ich bisher gefunden habe, ist eine Ableitung von Label zu machen, und darin im OnPaint den String manuell via DrawString auszugeben, da kann man dann auch via StringFormat eine Richtung angeben...
Müsste eigentlich mit jedem von Windows.Forms.Controll abgeleitetem Objekt klappen... Nur zu dumm, wenn das Control nicht von da abstammt *hmpf*