I am a novice to TAdvTreeView .
I put the following code in the OnMouseDown event.
XYToColumnSize is always -1, why?
I want to get that what Column be clicked.
var
vIdx: Integer;
begin
if not (Button in [mbLeft]) then
Exit;
vIdx := atvBrowse.XYToColumnSize(X, Y);
if vIdx <> -1 then
ShowMessage( FTypeStrs.Strings[vIdx-1] );
end;
thank