mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 13:40:23 +02:00
win32: create page handle when it is added to the pagecontrol (solves bug #0012434)
git-svn-id: trunk@18214 -
This commit is contained in:
parent
69bd358a27
commit
3939054ef3
@ -429,6 +429,11 @@ var
|
||||
begin
|
||||
with ANotebook do
|
||||
begin
|
||||
// other widgetsets allocates handles because they really need this
|
||||
// but on windows page handle is differ from tab and thus allocation can be
|
||||
// postponed, but this cause problems with event handling like bug #0012434
|
||||
// so to overcome such problems we need to allocate this handle
|
||||
AChild.HandleNeeded;
|
||||
if ShowTabs then
|
||||
begin
|
||||
TCI.Mask := TCIF_TEXT or TCIF_PARAM or TCIF_IMAGE;
|
||||
|
Loading…
Reference in New Issue
Block a user