API:Vcl.DBGrids.TCustomDBGrid.CheckColumnDrag

Aus RAD Studio API Documentation

Delphi

function CheckColumnDrag(var Origin, Destination: Integer;  const MousePt: TPoint): Boolean; override;

C++

DYNAMIC bool __fastcall CheckColumnDrag(int &Origin, int &Destination, const System::Types::TPoint &MousePt);

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function protected
Vcl.DbGrids.pas
Vcl.DBGrids.hpp
Vcl.DBGrids TCustomDBGrid

Beschreibung

Überprüft, ob die aktuell zum Ziehen ausgewählte Spalte an der aktuellen Position abgelegt werden kann. {{#multireplace:Vcl.DBGrids.TCustomDBGrid.CheckColumnDrag|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} erbt von {{#multireplace:Vcl.Grids.TCustomGrid.CheckColumnDrag|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. Der folgende Inhalt bezieht sich auf {{#multireplace:Vcl.Grids.TCustomGrid.CheckColumnDrag|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

Überprüft, ob die aktuell zum Ziehen ausgewählte Spalte an der aktuellen Position abgelegt werden kann.

Mit CheckColumnDrag können Sie feststellen, ob die Spalte, die aktuell für eine Ziehen-Operation ausgewählt ist, an der aktuellen Position abgelegt werden kann. CheckColumnDrag kann bei Bedarf Origin (die gezogene Spalte) und/oder Destination (die Ablegeposition) ändern, um die Reihenfolge der Gitterspalten selbst festzulegen.

Siehe auch