Forum: GUI-Design mit VCL / FireMonkey / Common Controls
by Larsi,
14. Jun 2008
if RichEdit1.SelAttributes = then
RichEdit1.Font.name := Combobox1.Items.Strings
else
RichEdit1.SelAttributes.name := Combobox1.Items.Strings;
Geht auch nicht: Unit1.pas(79): E2015 Operator ist auf diesen Operandentyp nicht anwendbar
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
by Larsi,
14. Jun 2008
if RichEdit1.SelAttributes = '' then
RichEdit1.Font.name := Combobox1.Items.Strings
else
RichEdit1.SelAttributes.name := Combobox1.Items.Strings;
Wenn ich das jetut so mache kommen immernoch Fehler:
Unit1.pas(79): E2010 Inkompatible Typen: 'string' und 'TTextAttributes'
Wie kann ich es denn machen, dass wenn nichts makiert ist, dann alles im Richedit durch die Font verändert wird?
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
by Larsi,
14. Jun 2008
da gibt es aber die .Font gar nicht. Also RichEdit.SelAttributes.Font geht nicht da kommt ein Fehler: Unit1.pas(79): E2003 Undefinierter Bezeichner: 'font'
Forum: GUI-Design mit VCL / FireMonkey / Common Controls
by Larsi,
14. Jun 2008
Darf ich nochmal was ganz kurzes hinterherschieben? Wie kann man denn nur den makierten Text eines Richedits mit der Font ändern?
Dieser Thread ist ab diesem Posting aus diesem hier hervorgegangen. Mfg, Sharky