|
Почему не хочет работать ?!!!
|
|||
---|---|---|---|
#18+
Надыбал пример из книги , а работать не хочет ? Это уже второй такой случай . Что я делаю не так . DefaultDrowing установил в true . procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState); begin if (Column.FieldName='legth') then begin DBGrid1.Canvas.Brush.Color:=clRed; DBGrid1.Canvas.Font.Color:=clYellow; DBGrid1.Canvas.Font.Style:=[fsItalic]; DBGrid1.Canvas.FillRect(Rect); end; end; Ну и тогда второй пример : procedure TForm1.ButtonClick(Sender: TObject); begin case RadioGroup1.ItemIndex of 0: Table.indexName:=’x’; 1: Table.indexName:=’y’; end; case RadioGroup2.ItemIndex of 0: Table.indexDefs[Table1.indexDefs.indexOf(Table.indexName)].Options:= Table.indexDefs[Table1.indexDefs.indexOf(Table.indexName)].Options + [ixDescending] 1: Table.indexDefs[Table1.indexDefs.indexOf(Table.indexName)].Options:= Table.indexDefs[Table1.indexDefs.indexOf(Table.indexName)].Options - [ixDescending]; end; end; Первая часть ( RadioGroup1) работает чудно , а вторая - ноль эмоций. Понятно , что проще Сделать теми же RadioGroup , но через Tquery , но почему не работает ? И какое различие между Tquery и Ttable , если один пень с локальной базой рублюсь , как собственно тут надо прикидывать ? ... |
|||
:
Нравится:
Не нравится:
|
|||
05.07.2002, 14:34 |
|
|
start [/forum/topic.php?fid=58&fpage=2085&tid=2119965]: |
0ms |
get settings: |
10ms |
get forum list: |
12ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
31ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
31ms |
get tp. blocked users: |
1ms |
others: | 295ms |
total: | 401ms |
0 / 0 |