Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Fixes to avoid "no Parent-Window" exception

Please change following code to avoid above exception unter some circumstances:

ElPgCtl.pas

TElPageControl.ChangeActivePage -> Add "if HandleAllocated then" bevore Realign
TElPageControl.IntMouseDown -> Add try..except around SetFocus
TElPageControl.IntLButtonUp -> Add try..except around SetFocus
TElPageControl.RecalcTabPositions -> Change "if HasVP then" to "if HasVP and HandleAllocated then"

ElTree.pas

TElTreeItem.RedrawItemPart -> Add "if FOwner.FView.HandleAllocated() then" bevore InvalidateRect
TElTreeItem.RedrawItem -> Add "if FOwner.FView.HandleAllocated() then" bevore InvalidateRect




Tagged:

Comments

Sign In or Register to comment.