LCL, Carbon: Painting non-visual controls for TDataModule and TFrame descendants. From Maciej.

git-svn-id: trunk@50423 -
This commit is contained in:
juha 2015-11-19 13:55:44 +00:00
parent a3553d9e5a
commit 1d411f67bf

View File

@ -160,7 +160,7 @@ class function TCarbonWSCustomForm.CreateHandle(const AWinControl: TWinControl;
var
frm : TCustomForm;
begin
if csDesigning in AWinControl.ComponentState then
if IsFormDesign(AWinControl) then
Result := TLCLIntfHandle(TCarbonDesignWindow.Create(AWinControl, AParams))
else
Result := TLCLIntfHandle(TCarbonWindow.Create(AWinControl, AParams));