You've already forked lazarus-ccr
* Set DefaultText value in constructor only when the component is dropped in design time so it can be set to ''
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1160 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -30682,8 +30682,8 @@ constructor TCustomVirtualStringTree.Create(AOwner: TComponent);
|
||||
|
||||
begin
|
||||
inherited;
|
||||
|
||||
FDefaultText := 'Node';
|
||||
if (Owner = nil) or (([csReading, csDesigning] * Owner.ComponentState) = [csDesigning]) then
|
||||
FDefaultText := 'Node';
|
||||
FInternalDataOffset := AllocateInternalDataArea(SizeOf(Cardinal));
|
||||
end;
|
||||
|
||||
|
Reference in New Issue
Block a user