[Lazarus] Bug creating a new control?
Fabio Luis Girardi
fluisgirardi at gmail.com
Sat Feb 22 13:44:23 CET 2014
No... this don't work too. Controls still using form1 as parent, not
rowpanel. :(
Em 22/02/2014 05:52, "patspiper" <patspiper at gmail.com> escreveu:
> On 22/02/14 02:50, Fabio Luis Girardi wrote:
>
> Hi all!
>
> I started the TDBCtrlGrid implementation some days ago. At this point, I
> don't know if I'm doing some mistake or if Lazarus has a bug. The problem
> is that I can't put any controls on TDBCtrlGrid area, but I can put
> controls with csReplicatable in ControlStyle inside a "RowPanel"
> (TDBCtrlGridRow class) that is a control that will be used to draw rows,
> BUT LAZARUS don't do this!!
>
> TDBCtrlGrid is created with
>
> ControlStyle := [csOpaque, csDoubleClicks];
>
> and TDBCtrlGridRow is created with
>
> ControlStyle := [csAcceptsControls, csCaptureMouse, csClickEvents,
> csDoubleClicks, csOpaque, csReplicatable];
>
>
> Logically, the row panel must accept controls, but TDBCtrlGrid NOR
> TDBCtrlGridRow accepts controls.
>
>
> Add a (protected) method to your class:
> function ChildClassAllowed(ChildClass: TClass): boolean; override;
> and set its result to true if you want to allow the ChildClass to be
> dropped on your component.
>
> Stephano
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140222/6e9477c3/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Captura de tela de 2014-02-22 09:42:58.png
Type: image/png
Size: 4279 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140222/6e9477c3/attachment-0003.png>
More information about the Lazarus
mailing list