mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 12:49:13 +02:00
LCL, Carbon: Painting non-visual controls for TDataModule and TFrame descendants. From Maciej.
git-svn-id: trunk@50423 -
This commit is contained in:
parent
a3553d9e5a
commit
1d411f67bf
@ -160,7 +160,7 @@ class function TCarbonWSCustomForm.CreateHandle(const AWinControl: TWinControl;
|
|||||||
var
|
var
|
||||||
frm : TCustomForm;
|
frm : TCustomForm;
|
||||||
begin
|
begin
|
||||||
if csDesigning in AWinControl.ComponentState then
|
if IsFormDesign(AWinControl) then
|
||||||
Result := TLCLIntfHandle(TCarbonDesignWindow.Create(AWinControl, AParams))
|
Result := TLCLIntfHandle(TCarbonDesignWindow.Create(AWinControl, AParams))
|
||||||
else
|
else
|
||||||
Result := TLCLIntfHandle(TCarbonWindow.Create(AWinControl, AParams));
|
Result := TLCLIntfHandle(TCarbonWindow.Create(AWinControl, AParams));
|
||||||
|
Loading…
Reference in New Issue
Block a user