mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 00:20:13 +02:00
TCustomTabControl: do not call OnChange when setting PageIndex/TabIndex by code. Issue #0025554.
git-svn-id: trunk@53089 -
This commit is contained in:
parent
94d424d93a
commit
78830476ff
@ -585,8 +585,9 @@ begin
|
||||
//debugln('TCustomTabControl.SetPageIndex B ',dbgsName(Self),' AValue=',dbgs(AValue),' fPageIndex=',dbgs(fPageIndex),' PageCount=',dbgs(PageCount),' HandleAllocated=',dbgs(HandleAllocated));
|
||||
|
||||
InternalSetPageIndex(AValue);
|
||||
if ([csDesigning, csLoading, csDestroying] * ComponentState = []) then
|
||||
DoChange;
|
||||
//Delphi does not do this. In future we might make this configurable, so for the time being I commented it out
|
||||
//if ([csDesigning, csLoading, csDestroying] * ComponentState = []) then
|
||||
// DoChange;
|
||||
end;
|
||||
|
||||
{$IFDEF old}
|
||||
|
Loading…
Reference in New Issue
Block a user