[Lazarus] Bug creating a new control?

Fabio Luis Girardi fluisgirardi at gmail.com
Sat Feb 22 15:04:31 CET 2014


A mode detailed explanation....


2014-02-22 9:44 GMT-03:00 Fabio Luis Girardi <fluisgirardi at gmail.com>:

> 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
>>
>>


-- 
The best regards,

Fabio Luis Girardi
PascalSCADA Project
http://sourceforge.net/projects/pascalscada
http://www.pascalscada.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140222/69d4f08f/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: text5294.png
Type: image/png
Size: 48142 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140222/69d4f08f/attachment-0003.png>


More information about the Lazarus mailing list