[Lazarus] revision 51597 attn Ondrej

zeljko zeljko at holobit.net
Sun Feb 14 15:15:57 CET 2016


On 02/14/2016 03:01 PM, zeljko wrote:
> In that revision you added RecreateWnd() for modal forms. Why ? Now in
> console we have warnings about it... IMO:
> 1.it's wrong to call RecreateWnd() if handle isn't allocated yet

There shuold be added if (popupMode = pmNone) and HandleAllocated, 
otherwise call just needed routines from RecreateWnd() like 
UpdateControlState

> 2.HandleNeeded isn't really needed after RecreateWnd()
Forget about this one, I was wrong here.

z





More information about the Lazarus mailing list