LCL: PageControl, set tab index to widgetset. This was skipped if handle-creation was forced (by other controls) during csLoading. issue #0025555

git-svn-id: trunk@44469 -
This commit is contained in:
martin 2014-03-18 21:37:10 +00:00
parent ef91216989
commit 401ad24b64
2 changed files with 8 additions and 0 deletions

View File

@ -411,6 +411,7 @@ type
procedure CNNotify(var Message: TLMNotify); message CN_NOTIFY;
class procedure WSRegisterClass; override;
procedure CreateWnd; override;
procedure Loaded; override;
procedure DoChange; virtual;
procedure InitializeWnd; override;
procedure Change; virtual;

View File

@ -306,6 +306,13 @@ begin
end;
end;
procedure TCustomTabControl.Loaded;
begin
inherited Loaded;
if HandleAllocated then
DoSendPageIndex;
end;
procedure TCustomTabControl.DoChange;
begin
if Assigned(OnChange) then