Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-02

What GetChildParent does in designer and reader?

23 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Fabio Luis Girardi
to Mattias Gaertner

So, to resolve some issues to make a "TDBCtrlGrid" for lazarus, designer should use this function to determine the real parent of a child control?

2014-02-27 7:59 GMT-03:00 Mattias Gaertner :

Show quoted text 13 lines
In designer: nothing. In reader: it overrides the parent-child nesting of the stream. I don't know an example. Mattias -- _______________________________________________ Lazarus mailing list 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.freepascal.org/pipermail/lazarus/attachments/20140227/f2ba69ec/attachment.html>

Reply by email

Mattias Gaertner
to Fabio Luis Girardi
So, to resolve some issues to make a "TDBCtrlGrid" for lazarus, designer should use this function to determine the real parent of a child control?

Let me rephrase: No Lazarus component has ever used this function.

So far I understood that you wrote a custom control, but the designer does not allow to add child controls.
Is this correct?

Can you send some more code? Then maybe someone sees the problem.

Mattias

Reply by email

Fabio Luis Girardi
to Mattias Gaertner

2014-02-27 9:24 GMT-03:00 Mattias Gaertner :

Show quoted text 8 lines
On Thu, 27 Feb 2014 09:07:49 -0300 Fabio Luis Girardi wrote: > So, to resolve some issues to make a "TDBCtrlGrid" for lazarus, designer > should use this function to determine the real parent of a child control? Let me rephrase: No Lazarus component has ever used this function.

Right. I can't found a example of this function.

So far I understood that you wrote a custom control

Right too, I'm writing a TCustomControl descendant.

, but the designer does not allow to add child controls. Is this correct?

No. Lazarus allow me to add a child to my control, but I want redirect these childs to use a Panel inside of my TCustomControl as their parent.

Can you send some more code? Then maybe someone sees the problem.

Yes, I'll provide soon as possible.

Show quoted text 9 lines
Mattias -- _______________________________________________ Lazarus mailing list 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.freepascal.org/pipermail/lazarus/attachments/20140227/8048970f/attachment.html>

Reply by email

Mattias Gaertner
to Fabio Luis Girardi
[...] No. Lazarus allow me to add a child to my control, but I want redirect these childs to use a Panel inside of my TCustomControl as their parent.

I see. There is no function yet, to redirect designer drops. Components can only accept or refuse.

Maybe a method can be added to TWinControl:

function GetDesignerDropTarget(aControl: TControlClass): TWinControl;
virtual;

Mattias

Reply by email

Fabio Luis Girardi
to Mattias Gaertner

2014-02-27 10:07 GMT-03:00 Mattias Gaertner :

Show quoted text 15 lines
On Thu, 27 Feb 2014 09:32:31 -0300 Fabio Luis Girardi wrote: >[...] > No. Lazarus allow me to add a child to my control, but I want redirect > these childs to use a Panel inside of my TCustomControl as their parent. I see. There is no function yet, to redirect designer drops. Components can only accept or refuse. Maybe a method can be added to TWinControl: function GetDesignerDropTarget(aControl: TControlClass): TWinControl; virtual;

Yes, and by default it returns Self, and if it was override, this function returns the new parent of child controls? This is your idea?

Show quoted text 10 lines
Mattias -- _______________________________________________ Lazarus mailing list 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.freepascal.org/pipermail/lazarus/attachments/20140227/112e4bff/attachment-0001.html>

Reply by email

Mattias Gaertner
to Fabio Luis Girardi
Show quoted text 20 lines
2014-02-27 10:07 GMT-03:00 Mattias Gaertner : > On Thu, 27 Feb 2014 09:32:31 -0300 > Fabio Luis Girardi wrote: > > >[...] > > No. Lazarus allow me to add a child to my control, but I want redirect > > these childs to use a Panel inside of my TCustomControl as their parent. > > I see. There is no function yet, to redirect designer drops. Components > can only accept or refuse. > > Maybe a method can be added to TWinControl: > > function GetDesignerDropTarget(aControl: TControlClass): TWinControl; > virtual; > Yes, and by default it returns Self, and if it was override, this function returns the new parent of child controls? This is your idea?

Yes. You are reading my mind.

Mattias

Reply by email

Fabio Luis Girardi
to Mattias Gaertner

2014-02-27 11:14 GMT-03:00 Mattias Gaertner :

Show quoted text 30 lines
On Thu, 27 Feb 2014 10:26:04 -0300 Fabio Luis Girardi wrote: > 2014-02-27 10:07 GMT-03:00 Mattias Gaertner : > > > On Thu, 27 Feb 2014 09:32:31 -0300 > > Fabio Luis Girardi wrote: > > > > >[...] > > > No. Lazarus allow me to add a child to my control, but I want redirect > > > these childs to use a Panel inside of my TCustomControl as their parent. > > > > I see. There is no function yet, to redirect designer drops. Components > > can only accept or refuse. > > > > Maybe a method can be added to TWinControl: > > > > function GetDesignerDropTarget(aControl: TControlClass): TWinControl; > > virtual; > > > > Yes, and by default it returns Self, and if it was override, this function > returns the new parent of child controls? This is your idea? Yes. You are reading my mind. hahahahahahah right... More mind reading: aControl parameter will be the

control being inserted?

Show quoted text 10 lines
Mattias -- _______________________________________________ Lazarus mailing list 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.freepascal.org/pipermail/lazarus/attachments/20140227/92d6cb3c/attachment.html>

Reply by email

Antonio Fortuny
to Fabio Luis Girardi: 2014-02-27 10:07 GMT-03:00 Mattias Gaertner : Yes, and by default it returns Self, and if…

Voil?,

Tous les fichiers troisi?me g?n?ration sont en place selo les noms: pays_job.csv (2007 pour la France)
Les nombres de lignes par fichier correspond ? la seconde version J'ai sond? quelques fichiers: ils sont identiques entre versions 2 et 3. et sauf la Belgique job 2548 d?j? mis.

A. Fortuny

---
Ce courrier ?lectronique ne contient aucun virus ou logiciel malveillant parce que la protection avast! Antivirus est active. http://www.avast.com

Reply by email

Hans-Peter Diettrich
to Mattias Gaertner: On Thu, 27 Feb 2014 10:26:04 -0300 Yes. You are reading my mind. Mattias
Show quoted text 18 lines
On Thu, 27 Feb 2014 10:26:04 -0300 Fabio Luis Girardi wrote: > 2014-02-27 10:07 GMT-03:00 Mattias Gaertner : > >> On Thu, 27 Feb 2014 09:32:31 -0300 >> Fabio Luis Girardi wrote: >> >>> [...] >>> No. Lazarus allow me to add a child to my control, but I want redirect >>> these childs to use a Panel inside of my TCustomControl as their parent. >> I see. There is no function yet, to redirect designer drops. Components >> can only accept or refuse. >> >> Maybe a method can be added to TWinControl: >> >> function GetDesignerDropTarget(aControl: TControlClass): TWinControl; >> virtual;

Component Drag&Drop operations can be configured and controlled by the originator (here: Palette, Designer, Component...), which can e.g. provide a TDragObject governing the whole operation. In Lazarus these capabilites are restricted by the incompatible LCL DragManager, which does not use the methods of the TDragObjects declared in the VCL.

DoDi

Reply by email

Fabio Luis Girardi
to Mattias Gaertner

Hi Mattias!!

Revision 44299 is related with this?

The best regards

2014-02-28 7:56 GMT-03:00 Mattias Gaertner :

Show quoted text 17 lines
On Fri, 28 Feb 2014 01:47:38 +0100 Hans-Peter Diettrich wrote: >[...] > Component Drag&Drop operations There is no drag when adding a component to a form. Mattias -- _______________________________________________ Lazarus mailing list 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.freepascal.org/pipermail/lazarus/attachments/20140303/4bfc30b1/attachment.html>

Reply by email

Fabio Luis Girardi
to Fabio Luis Girardi

Hi!!

Attached the code of my prototype of TDBCtrlGrid. It works as expected on Delphi (except the function GetDesignerDropTarget that don't exists on Delphi TWinControl), but it don't works as expected on Lazarus.

2014-03-03 10:17 GMT-03:00 Fabio Luis Girardi :

Show quoted text 38 lines
Hi Mattias!! Revision 44299 is related with this? The best regards 2014-02-28 7:56 GMT-03:00 Mattias Gaertner : On Fri, 28 Feb 2014 01:47:38 +0100 > Hans-Peter Diettrich wrote: > > >[...] > > Component Drag&Drop operations > > There is no drag when adding a component to a form. > > Mattias > > > -- > _______________________________________________ > Lazarus mailing list > > 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
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.freepascal.org/pipermail/lazarus/attachments/20140303/fb8e867d/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: mytest.pas Type: text/x-pascal Size: 1654 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140303/fb8e867d/attachment.bin>

Reply by email

Mattias Gaertner
to Fabio Luis Girardi
Show quoted text 5 lines
Hi!! Attached the code of my prototype of TDBCtrlGrid. It works as expected on Delphi (except the function GetDesignerDropTarget that don't exists on Delphi TWinControl), but it don't works as expected on Lazarus.

On second thought the LCL method is not very flexible. I added a general designer event.

See
http://wiki.lazarus.freepascal.org/Extending_the_IDE#Example:_When_dropping_a_new_component_move_control_to_a_child

Please test.

Mattias

Reply by email

Fabio Luis Girardi
to Mattias Gaertner
mytesthelper.pas(40,20) Error: identifier idents no member
"RemoveHandlerComponentAdded"

Lazarus 1.3

2014-03-03 18:56 GMT-03:00 Mattias Gaertner :

Show quoted text 26 lines
On Mon, 3 Mar 2014 16:47:30 -0300 Fabio Luis Girardi wrote: > Hi!! > > Attached the code of my prototype of TDBCtrlGrid. It works as expected on > Delphi (except the function GetDesignerDropTarget that don't exists on > Delphi TWinControl), but it don't works as expected on Lazarus. On second thought the LCL method is not very flexible. I added a general designer event. See http://wiki.lazarus.freepascal.org/Extending_the_IDE#Example:_When_dropping_a_new_component_move_control_to_a_child Please test. Mattias -- _______________________________________________ Lazarus mailing list 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.freepascal.org/pipermail/lazarus/attachments/20140304/291049cb/attachment.html>

Reply by email

Fabio Luis Girardi
to Fabio Luis Girardi

Maybe RemoveHandlerAddClicked is a replacement?

2014-03-04 9:43 GMT-03:00 Fabio Luis Girardi :

Show quoted text 47 lines
mytesthelper.pas(40,20) Error: identifier idents no member "RemoveHandlerComponentAdded" Lazarus 1.3 2014-03-03 18:56 GMT-03:00 Mattias Gaertner : On Mon, 3 Mar 2014 16:47:30 -0300 > Fabio Luis Girardi wrote: > > > Hi!! > > > > Attached the code of my prototype of TDBCtrlGrid. It works as expected > on > > Delphi (except the function GetDesignerDropTarget that don't exists on > > Delphi TWinControl), but it don't works as expected on Lazarus. > > On second thought the LCL method is not very flexible. > I added a general designer event. > > See > > http://wiki.lazarus.freepascal.org/Extending_the_IDE#Example:_When_dropping_a_new_component_move_control_to_a_child > > Please test. > > Mattias > > -- > _______________________________________________ > Lazarus mailing list > > 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
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.freepascal.org/pipermail/lazarus/attachments/20140304/bc5d4646/attachment.html>

Reply by email

Fabio Luis Girardi
to Fabio Luis Girardi

Hi Mattias!!

This solution don't work too.

2014-03-04 9:46 GMT-03:00 Fabio Luis Girardi :

Show quoted text 63 lines
Maybe RemoveHandlerAddClicked is a replacement? 2014-03-04 9:43 GMT-03:00 Fabio Luis Girardi : mytesthelper.pas(40,20) Error: identifier idents no member > "RemoveHandlerComponentAdded" > > Lazarus 1.3 > > > > 2014-03-03 18:56 GMT-03:00 Mattias Gaertner : > > On Mon, 3 Mar 2014 16:47:30 -0300 >> Fabio Luis Girardi wrote: >> >> > Hi!! >> > >> > Attached the code of my prototype of TDBCtrlGrid. It works as expected >> on >> > Delphi (except the function GetDesignerDropTarget that don't exists on >> > Delphi TWinControl), but it don't works as expected on Lazarus. >> >> On second thought the LCL method is not very flexible. >> I added a general designer event. >> >> See >> >> http://wiki.lazarus.freepascal.org/Extending_the_IDE#Example:_When_dropping_a_new_component_move_control_to_a_child >> >> Please test. >> >> Mattias >> >> -- >> _______________________________________________ >> Lazarus mailing list >> >> 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 > -- The best regards, Fabio Luis Girardi PascalSCADA Project http://sourceforge.net/projects/pascalscada http://www.pascalscada.com
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.freepascal.org/pipermail/lazarus/attachments/20140304/c081bdaf/attachment-0001.html>

Reply by email

luiz americo pereira camara
to Fabio Luis Girardi: Hi Mattias!! This solution don't work too. 2014-03-04 9:46 GMT-03:00 Fabio Luis Girardi :…

Hi Fabio,

I'd like to share how i implemented similar behavior of TDbCtrlGrid, so maybe you can be interested. If not just ignore.

First i create a TFrame in Lazarus put the controls that i need to be there.

In the control i want to display the instances of the frame i create at runtime according to a configuration

This way i have the easy of use of Lazarus designer with a lot of flexibility.

I created an control (
https://code.google.com/p/luipack/source/browse/trunk/luicontrols/jsonmediators.pas) that does the above. The frame class
(TJSONBooleanRadioButtonViewFrame)
is hardcoded but it can be decoupled by using an interface.

To implement TDbCtrlGrid like control with this approach seems easier then you are trying:

- Define an interface with what you need to configure the DbCtrls like IDbCtrlItem = interface

  SetDatasource(Datasource: TDataSource);
  end;

- Create a control that has a TFrameClass property
- When the TFrameClass is set, check if implements IDbCtrlItem
- At runtime create as many TFrameClass instances as needed configuring them at initialization through the IDbCtrlItem interface
- Bind to dataset events and update the controls accordingly

Luiz

2014-03-04 10:41 GMT-03:00 Fabio Luis Girardi :

Show quoted text 88 lines
Hi Mattias!! This solution don't work too. 2014-03-04 9:46 GMT-03:00 Fabio Luis Girardi : Maybe RemoveHandlerAddClicked is a replacement? > > > 2014-03-04 9:43 GMT-03:00 Fabio Luis Girardi : > > mytesthelper.pas(40,20) Error: identifier idents no member >> "RemoveHandlerComponentAdded" >> >> Lazarus 1.3 >> >> >> >> 2014-03-03 18:56 GMT-03:00 Mattias Gaertner : >> >> On Mon, 3 Mar 2014 16:47:30 -0300 >>> Fabio Luis Girardi wrote: >>> >>> > Hi!! >>> > >>> > Attached the code of my prototype of TDBCtrlGrid. It works as >>> expected on >>> > Delphi (except the function GetDesignerDropTarget that don't exists on >>> > Delphi TWinControl), but it don't works as expected on Lazarus. >>> >>> On second thought the LCL method is not very flexible. >>> I added a general designer event. >>> >>> See >>> >>> http://wiki.lazarus.freepascal.org/Extending_the_IDE#Example:_When_dropping_a_new_component_move_control_to_a_child >>> >>> Please test. >>> >>> Mattias >>> >>> -- >>> _______________________________________________ >>> Lazarus mailing list >>> >>> 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 >> > > > > -- > The best regards, > > Fabio Luis Girardi > PascalSCADA Project > http://sourceforge.net/projects/pascalscada > http://www.pascalscada.com > -- The best regards, Fabio Luis Girardi PascalSCADA Project http://sourceforge.net/projects/pascalscada http://www.pascalscada.com -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140304/d996bc97/attachment.html>

Reply by email

Fabio Luis Girardi
to luiz americo pereira camara

I'll try this approach. At the moment this is a good workaround... :)

"luiz americo pereira camara" wrote 134 lines
Hi Fabio, I'd like to share how i implemented similar behavior of TDbCtrlGrid, so maybe you can be interested. If not just ignore. First i create a TFrame in Lazarus put the controls that i need to be there. In the control i want to display the instances of the frame i create at runtime according to a configuration This way i have the easy of use of Lazarus designer with a lot of flexibility. I created an control ( https://code.google.com/p/luipack/source/browse/trunk/luicontrols/jsonmediators.pas) that does the above. The frame class (TJSONBooleanRadioButtonViewFrame) is hardcoded but it can be decoupled by using an interface. To implement TDbCtrlGrid like control with this approach seems easier then you are trying: - Define an interface with what you need to configure the DbCtrls like IDbCtrlItem = interface SetDatasource(Datasource: TDataSource); end; - Create a control that has a TFrameClass property - When the TFrameClass is set, check if implements IDbCtrlItem - At runtime create as many TFrameClass instances as needed configuring them at initialization through the IDbCtrlItem interface - Bind to dataset events and update the controls accordingly Luiz 2014-03-04 10:41 GMT-03:00 Fabio Luis Girardi : > Hi Mattias!! > > This solution don't work too. > > > 2014-03-04 9:46 GMT-03:00 Fabio Luis Girardi : > > Maybe RemoveHandlerAddClicked is a replacement? >> >> >> 2014-03-04 9:43 GMT-03:00 Fabio Luis Girardi : >> >> mytesthelper.pas(40,20) Error: identifier idents no member >>> "RemoveHandlerComponentAdded" >>> >>> Lazarus 1.3 >>> >>> >>> >>> 2014-03-03 18:56 GMT-03:00 Mattias Gaertner >>> : >>> >>> On Mon, 3 Mar 2014 16:47:30 -0300 >>>> Fabio Luis Girardi wrote: >>>> >>>> > Hi!! >>>> > >>>> > Attached the code of my prototype of TDBCtrlGrid. It works as >>>> expected on >>>> > Delphi (except the function GetDesignerDropTarget that don't exists >>>> on >>>> > Delphi TWinControl), but it don't works as expected on Lazarus. >>>> >>>> On second thought the LCL method is not very flexible. >>>> I added a general designer event. >>>> >>>> See >>>> >>>> http://wiki.lazarus.freepascal.org/Extending_the_IDE#Example:_When_dropping_a_new_component_move_control_to_a_child >>>> >>>> Please test. >>>> >>>> Mattias >>>> >>>> -- >>>> _______________________________________________ >>>> Lazarus mailing list >>>> >>>> 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 >>> >> >> >> >> -- >> The best regards, >> >> Fabio Luis Girardi >> PascalSCADA Project >> http://sourceforge.net/projects/pascalscada >> http://www.pascalscada.com >> > > > > -- > The best regards, > > Fabio Luis Girardi > PascalSCADA Project > http://sourceforge.net/projects/pascalscada > http://www.pascalscada.com > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140304/8ac6c7e6/attachment-0001.html>

Reply by email

Fabio Luis Girardi
to Fabio Luis Girardi

But I'll keep trying to implement this.

"Fabio Luis Girardi" wrote 138 lines
I'll try this approach. At the moment this is a good workaround... :) Em 04/03/2014 21:22, "luiz americo pereira camara" escreveu: > Hi Fabio, > > I'd like to share how i implemented similar behavior of TDbCtrlGrid, so > maybe you can be interested. If not just ignore. > > First i create a TFrame in Lazarus put the controls that i need to be > there. > > In the control i want to display the instances of the frame i create at > runtime according to a configuration > > This way i have the easy of use of Lazarus designer with a lot of > flexibility. > > I created an control ( > https://code.google.com/p/luipack/source/browse/trunk/luicontrols/jsonmediators.pas) that does the above. The frame class (TJSONBooleanRadioButtonViewFrame) > is hardcoded but it can be decoupled by using an interface. > > To implement TDbCtrlGrid like control with this approach seems easier > then you are trying: > > - Define an interface with what you need to configure the DbCtrls like > IDbCtrlItem = interface > SetDatasource(Datasource: TDataSource); > end; > - Create a control that has a TFrameClass property > - When the TFrameClass is set, check if implements IDbCtrlItem > - At runtime create as many TFrameClass instances as needed configuring > them at initialization through the IDbCtrlItem interface > - Bind to dataset events and update the controls accordingly > > Luiz > > > 2014-03-04 10:41 GMT-03:00 Fabio Luis Girardi : > >> Hi Mattias!! >> >> This solution don't work too. >> >> >> 2014-03-04 9:46 GMT-03:00 Fabio Luis Girardi : >> >> Maybe RemoveHandlerAddClicked is a replacement? >>> >>> >>> 2014-03-04 9:43 GMT-03:00 Fabio Luis Girardi : >>> >>> mytesthelper.pas(40,20) Error: identifier idents no member >>>> "RemoveHandlerComponentAdded" >>>> >>>> Lazarus 1.3 >>>> >>>> >>>> >>>> 2014-03-03 18:56 GMT-03:00 Mattias Gaertner < >>>> >: >>>> >>>> On Mon, 3 Mar 2014 16:47:30 -0300 >>>>> Fabio Luis Girardi wrote: >>>>> >>>>> > Hi!! >>>>> > >>>>> > Attached the code of my prototype of TDBCtrlGrid. It works as >>>>> expected on >>>>> > Delphi (except the function GetDesignerDropTarget that don't exists >>>>> on >>>>> > Delphi TWinControl), but it don't works as expected on Lazarus. >>>>> >>>>> On second thought the LCL method is not very flexible. >>>>> I added a general designer event. >>>>> >>>>> See >>>>> >>>>> http://wiki.lazarus.freepascal.org/Extending_the_IDE#Example:_When_dropping_a_new_component_move_control_to_a_child >>>>> >>>>> Please test. >>>>> >>>>> Mattias >>>>> >>>>> -- >>>>> _______________________________________________ >>>>> Lazarus mailing list >>>>> >>>>> 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 >>>> >>> >>> >>> >>> -- >>> The best regards, >>> >>> Fabio Luis Girardi >>> PascalSCADA Project >>> http://sourceforge.net/projects/pascalscada >>> http://www.pascalscada.com >>> >> >> >> >> -- >> The best regards, >> >> Fabio Luis Girardi >> PascalSCADA Project >> http://sourceforge.net/projects/pascalscada >> http://www.pascalscada.com >> >> -- >> _______________________________________________ >> Lazarus mailing list >> >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> >> > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > >

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140305/1c363324/attachment-0001.html>

Reply by email