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

Multi Languages StringGrid   Найти похожие ветки 

← →
proc ©   (2002-08-03 14:12) [0]

Можно ли в StringGrid использовать в заголовке RUSSIAN_CHARSET, а в теле BALTIK_CHARSET?

Спасибо.


← →
Dimka Maslov ©   (2002-08-03 16:35) [1]

Можно, обрабатывая прорисовку ячеек вручную через событие OnDrawCell


← →
Dimka Maslov ©   (2002-08-03 16:43) [2]

К примеру вот так:

procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer;
Rect: TRect; State: TGridDrawState);
var
Canvas: TCanvas;
begin
Canvas:=StringGrid1.Canvas;
if gdFixed in State then begin // отрисовывается заголовок
Canvas.Brush.Color := clBtnFace;
Canvas.Font.Charset:=RUSSIAN_CHARSET;
// в Object Inspector StringGrid1.Font.Charset
// должно быть BALTIC_CHARSET
Canvas.TextRect(Rect, Rect.Left+2, Rect.Top+2, StringGrid1.Cells[ACol, ARow]);
end;
end;


← →
Dimka Maslov ©   (2002-08-03 16:44) [3]

А ещё лучше будет, когда
Canvas.Brush.Color := StringGrid1.FixedColor;


← →
proc ©   (2002-08-03 17:58) [4]

Спасибо



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

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



Память: 0.45 MB
Время: 0.01 c
3-47936
IlyaA
2002-07-25 11:15
2002.08.15
Округление.


3-47969
kalliopiy
2002-07-26 11:48
2002.08.15
О фильтрах


7-48344
sniknik
2002-05-30 11:39
2002.08.15
Програмное выключение ATX в Dos


1-48179
Igorek
2002-08-02 13:02
2002.08.15
Еще раз про class of


1-48163
Ura
2002-08-02 12:01
2002.08.15
Help. Нужно встроить комбобокс с стринггрид.




   Наверх