win32: adjust size of pages after assigning an imagelist to a pagecontrol (bug #0015516)

git-svn-id: trunk@23602 -
This commit is contained in:
paul 2010-01-30 16:16:05 +00:00
parent 3dd19fc92b
commit 19471a58d8

View File

@ -662,6 +662,9 @@ begin
SendMessage(ANoteBook.Handle, TCM_SETIMAGELIST, 0, AImageList.Reference._Handle)
else
SendMessage(ANoteBook.Handle, TCM_SETIMAGELIST, 0, 0);
// if you set big images like 32x32 then tabs will be big too => you need to
// readjust the size of pages
AdjustSizeNotebookPages(ANotebook);
end;
class procedure TWin32WSCustomNotebook.SetPageIndex(const ANotebook: TCustomNotebook; const AIndex: integer);