I'm trying to extend the TSelectDirectoryDialog so it contains TCheckBox inside the dialog. It compiles, but I got AccessViolation at runtime. Here's the code:
unit xxx;
...
interface
type
TMySelectDirectoryDialog = class(TSelectDirectoryDialog)
CheckRecurse: TCheckBox;
constructor Create(AOwner: TComponent); override;
end;
...
implementation
constructor TMySelectDirectoryDialog.Create(AOwner: TComponent);
begin
Inherited Create(AOWner);
Title:='Select Folder to Add';
Options:=[ofPathMustExist,ofViewDetail];
with CheckRecurse do begin
Autosize:=true;
Checked:=false;
Left:=14;
Top:=10;
Caption:='Recurse Subdirectory';
end;
end;
...
end.
Anyone can help?