Вниз
Скачать: CL | DM;

Вопрос про RichEdit   Найти похожие ветки 

← →
maveric ©   (2002-11-14 17:56) [0]

Мне нужно что-бы в RichEdit вставлялась новая строка всегда первой и в зависимости от условий меняла свой цветвот пример кода
RichEdit1.SelAttributes.Color:=clGreen;
RichEdit1.Lines.Insert(0,IntToStr(a)+"


← →
MBo ©   (2002-11-14 17:58) [1]

procedure TForm1.Button1Click(Sender: TObject);
begin
with Richedit1 do begin
Lines.Insert(0,"New string "+ IntToStr(Lines.Count));
SelStart:=0;
SelLength:=Length(Lines[0]);
case Lines.Count mod 4 of
0:SelAttributes.Color:=clRed;
1:SelAttributes.Color:=clBlue;
2:SelAttributes.Color:=clGreen;
3:SelAttributes.Color:=clLime;
end;
end;
end;


← →
maveric ©   (2002-11-14 18:23) [2]

спасибо за помощь



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.014 c
3-82653
Youri
2002-11-06 11:56
2002.11.25
Поиск в базе!


1-82777
Азазелло
2002-11-15 17:26
2002.11.25
Delphi+ActiveX Crystal Report 8.5 передача параметров в ХП


1-82857
RTZ
2002-11-14 13:52
2002.11.25
Easy question


14-82974
Евген
2002-11-06 19:25
2002.11.25
Реестр


14-82939
Pascal's programmer
2002-11-06 05:03
2002.11.25
DrawFocusRect




   Наверх