[Customdrawn] Some patches for dialogs and palette

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Tue Sep 11 10:04:47 CEST 2012


Hello,

There seams to be an error in the patch:

===================================================================
--- lcl/lazdialogs.pas	(revisione 38609)
+++ lcl/lazdialogs.pas	(copia locale)
@@ -1,15 +1,17 @@
 unit lazdialogs;

-{$mode delphi}
+{$mode objfpc}{$H+}

 interface

 uses
   // RTL
-  Classes, SysUtils,
+  Classes, SysUtils, math,
   // LCL
   Forms, ShellCtrls, Buttons, StdCtrls, ExtCtrls, FileCtrl, ComCtrls,
-  Dialogs, ButtonPanel, lclstrconsts, FileUtil, Controls;
+  Dialogs, ButtonPanel, LCLStrConsts, FileUtil, Controls,
+  // CustomDrawn
+  customdrawncontrols, customdrawn_common;

==============

The LCL should not depend on the CustomDrawn package from what I
understand, I don't even see how this could compile ...

You should not use CD controls in lazdialogs. Just use normal LCL
controls. Then when we are using the LCL-CustomDrawn widgetset, the
widgetset itself will redirect the controls to be CustomDrawn
controls.

I changed TCDStaticText to TStaticText and TCDButton to TBitBtn and
commited the patch.

Applied in rev 38612

-- 
Felipe Monteiro de Carvalho




More information about the Customdrawn mailing list