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

DBCtrlCrid   Найти похожие ветки 

← →
Matolch ©   (2002-12-16 20:54) [0]

Как бы убрать полосу прокрутки...


← →
Ученик ©   (2002-12-16 21:59) [1]

Вариант 1

procedure TForm1.DataSource1DataChange(Sender: TObject; Field: TField);
begin
if Field = nil then
ShowScrollBar(DBCtrlGrid1.Handle, SB_VERT, False);
end;

Возможно будет иногда мигать

Вариант 2

type
{ Зависит от версии Delphi, это для Delphi 7 из dbcgrids.pas}
TDBCtrlGridAccess = class(TWinControl)
private
FDataLink: TDBCtrlGridLink;
FPanel: TDBCtrlPanel;
FCanvas: TCanvas;
FColCount: Integer;
FRowCount: Integer;
FPanelWidth: Integer;
FPanelHeight: Integer;
FPanelIndex: Integer;
FPanelCount: Integer;
FBitmapCount: Integer;
FPanelBitmap: HBitmap;
FSaveBitmap: HBitmap;
FPanelDC: HDC;
FOrientation: TDBCtrlGridOrientation;
FPanelBorder: TDBCtrlGridBorder;
FAllowInsert: Boolean;
FAllowDelete: Boolean;
FShowFocus: Boolean;
FFocused: Boolean;
FClicking: Boolean;
FSelColorChanged: Boolean;
FScrollBarKind: Integer;
end;

procedure TForm1.FormShow(Sender: TObject);
begin
with TDBCtrlGridAccess(DBCtrlGrid1) do begin
ShowScrollBar(DBCtrlGrid1.Handle, FScrollBarKind, False);
FScrollBarKind := SB_CTL
end
end;


← →
Matolch ©   (2002-12-16 22:20) [2]

Спасибо. D6
Не буду я её юзать.

Сволочи...



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

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



Память: 0.45 MB
Время: 0.01 c
1-86006
Groove_
2002-12-16 11:44
2002.12.26
*.txt;*.doc;*.exe...


3-85799
xenon
2002-12-05 17:24
2002.12.26
Operation not allowed on unidirectional dataset


7-86191
vidiv
2002-10-23 09:12
2002.12.26
Sound - NoSound beginer1 help me


1-86012
Анатолий
2002-12-16 14:29
2002.12.26
Нужна помощь


14-86077
777
2002-12-04 23:49
2002.12.26
Кто сейчас пьет пиво?




   Наверх