mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 07:36:14 +02:00
force handle creation before showing page contents
git-svn-id: trunk@6541 -
This commit is contained in:
parent
73ba16e348
commit
4da758ff04
@ -435,9 +435,9 @@ begin
|
||||
// create handle if not already done, need to show!
|
||||
if (AIndex >= 0) and (AIndex < ANotebook.PageCount) then
|
||||
begin
|
||||
NotebookTabChanged(ANotebook, AIndex);
|
||||
PageHandle := ANotebook.CustomPage(AIndex).Handle;
|
||||
SetWindowPos(PageHandle, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE or SWP_NOSIZE or SWP_SHOWWINDOW);
|
||||
NotebookTabChanged(ANotebook, AIndex);
|
||||
end;
|
||||
if (OldPageIndex >= 0) and (OldPageIndex<>AIndex)
|
||||
and (OldPageIndex < ANotebook.PageCount)
|
||||
|
Loading…
Reference in New Issue
Block a user