mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 19:49:18 +02:00
LCL: TCustomTabControl: don't fire OnChanging when programatically changing TabIndex/PageIndex. Patch by Michl. Issue #0033720.
git-svn-id: trunk@59985 -
This commit is contained in:
parent
3784a09e1b
commit
30e9e11e8c
@ -581,7 +581,7 @@ begin
|
||||
if (AValue < -1) or (AValue >= PageCount) then Exit;
|
||||
//debugln('TCustomTabControl.SetPageIndex A ',dbgsName(Self),' AValue=',dbgs(AValue),' fPageIndex=',dbgs(fPageIndex),' PageCount=',dbgs(PageCount),' HandleAllocated=',dbgs(HandleAllocated),' ',dbgs(ComponentState));
|
||||
if FPageIndex = AValue then exit;
|
||||
if not CanChangePageIndex then exit;
|
||||
if (nboDoChangeOnSetIndex in Options) and (not CanChangePageIndex) then exit; //Delphi does not call CanChange either
|
||||
//debugln('TCustomTabControl.SetPageIndex B ',dbgsName(Self),' AValue=',dbgs(AValue),' fPageIndex=',dbgs(fPageIndex),' PageCount=',dbgs(PageCount),' HandleAllocated=',dbgs(HandleAllocated));
|
||||
|
||||
InternalSetPageIndex(AValue);
|
||||
|
Loading…
Reference in New Issue
Block a user