Thema: Delphi protected symbol

Einzelnen Beitrag anzeigen

s-off
(Gast)

n/a Beiträge
 
#2

Re: protected symbol

  Alt 18. Apr 2006, 10:45
Hallo,

so geht's:

Delphi-Quellcode:
type
  TForm1 = class(TForm)
    dbgrid1: TJvDBGrid;
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

type
 TMyGrid = class(TCustomGrid)
 end;


var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure PimpMyCols(Grid: TDBGrid; FromC, ToC: Integer);
begin
  TMyGrid(grid).MoveColumn(FromC, ToC);
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
   PimpMyCols(dbgrid1, 1,3);
end;
  Mit Zitat antworten Zitat