Autor Beitrag
SuperS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 102

Win XP Home, Win XP Prof, Win 98

BeitragVerfasst: So 22.02.04 21:28 
Mir ist noch was eingefallen.
Wie kann man, wenn man in eine ComboBox z.B. mit einem OneChange Ereignis die markierte Schriftart und -größe ändern? :D

Moderiert von user profile iconPeter Lustig: Größenfrage eingefügt
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 22.02.04 21:36 
Hallo!

Ich habe Deine beiden Fragen mal zusammengefasst. Ein Thread sollte in diesem Fall reichen!

MfG
Peter

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
SuperS Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 102

Win XP Home, Win XP Prof, Win 98

BeitragVerfasst: So 22.02.04 21:57 
:?: Was is denn ein Thread???
Wie soll den das funktionieren?? :?:
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 22.02.04 22:02 
Hallo!

Ich habe Deine beiden Threads "Schriftart ändern" und "Schriftgröße ändern" zusammengefasst. Die beiden Themen sind so artverwandt, dass da ein Thread reicht.

MfG
Peter

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
MaxiTB
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 679

Win2000, WinXp, Workbench ;-)
D7 Ent, VS2003 Arch.
BeitragVerfasst: Mi 03.03.04 18:26 
Combobox ? Da gibts mal das Font Property, da kannst du beides ändern siehe Online Hilfe Delphi.
Allerdings kann man nur den Font für ALLE Texte der Combobox ändern und nicht nur bestimmte Einträge. Für letzteres brauchst eine spezielle Compo, hab aber keine Ahnung welche, weil ichs noch nie gebraucht habe. Allerdings ist bei D7 eine dabei auf der Win32 Leiste, wenn ich mich richtig erinnere.

PS: Mit thread war der Forums-thread gemeint. Wenn du ein topic post machst, dann erstellst du einen neuen thread. Du hast zwei threads gemacht mit dem selben Thema, deshalb hats ein Mod zusammengeführt.

_________________
Euer Mäxchen
Wer früher stirbt, ist länger tot.
SuperS Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 102

Win XP Home, Win XP Prof, Win 98

BeitragVerfasst: Mi 03.03.04 18:28 
:D Dann halt ohne ComboBox, aber es muss unbedingt gehen :!:
MaxiTB
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 679

Win2000, WinXp, Workbench ;-)
D7 Ent, VS2003 Arch.
BeitragVerfasst: Mi 03.03.04 18:37 
Tschuldigung - aber jetzt verstehe ich die Frage nicht mehr ganz wirklich ...

Was willst du jetzt erreichen :?:

Ich hab mal gedacht, es geht dir darum, die Font Eigenschaften einer Komponente zu ändern ... das geht mit dem von mir angesprochenen Property ... immer, auch von Events aus.

_________________
Euer Mäxchen
Wer früher stirbt, ist länger tot.
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Mi 03.03.04 19:46 
redest du von einem RichEdit???

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
SuperS Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 102

Win XP Home, Win XP Prof, Win 98

BeitragVerfasst: So 14.03.04 20:52 
Also nochmal,
ich will, dass man bei meinem Texteditor (RichEdit) die Schriftgröße oder Schriftart ändern kann.
Wenn's geht mit ner ComboBox.
Ich weiß außerdem schon wie es funktioniert, dass man alle Schriftarten, die sich auf dem Computer befinfden in einer ComboBox anzeigen lässt.
Wass mir noch fehlt ist, dass man wenn man die Schriftart-oder größe in der ComboBox ändert, dass dann der markierte Text in der Gewünschten Schriftgröße-oder art angezeigt wird.
So, hoffentlich kann mir jemand helfen. :tongue:
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: So 14.03.04 20:57 
ausblenden Delphi-Quelltext
1:
2:
RichEdit1.SelAttributes.Name:= ComboBox1.Text;
RichEdit1.SelAttributes.Size:= StrToInt(ComboBox2.Text);


vllt noch prüfen, ob wirklich eine Zahl in ComboBox2 steht... :roll:

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)