Import important part of extctrls.pas to Lape.
Merge pull request #210 from CynicRus/master

Import important part of extctrls.pas to Lape.