<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 22/02/14 02:50, Fabio Luis Girardi
wrote:<br>
</div>
<blockquote
cite="mid:CAMeLTwe4x4R+tWUZxmzV=1TsZHVKREZ8_k0sQ7wmWQxkJsCYDg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div style="font-family:arial,sans-serif;font-size:13px">Hi all!</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">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!!</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">TDBCtrlGrid
is created with </div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">ControlStyle
:= [csOpaque, csDoubleClicks];</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">
and TDBCtrlGridRow is created with</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">ControlStyle
:= [csAcceptsControls, csCaptureMouse, csClickEvents,</div>
<div style="font-family:arial,sans-serif;font-size:13px">
csDoubleClicks, csOpaque, csReplicatable];</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">
<br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">Logically,
the row panel must accept controls, but TDBCtrlGrid NOR
TDBCtrlGridRow accepts controls. <br>
</div>
</div>
</blockquote>
<br>
Add a (protected) method to your class:<br>
function ChildClassAllowed(ChildClass: TClass): boolean;
override;<br>
and set its result to true if you want to allow the ChildClass to be
dropped on your component.<br>
<br>
Stephano<br>
</body>
</html>