mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-31 02:12:35 +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
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user