Re: [Lazarus] DB aware components

2013-09-17 Thread Jesus Reyes A.
En Mon, 16 Sep 2013 04:12:31 -0500, Mattias Gaertner  
nc-gaert...@netcologne.de escribió:




Maybe a result of Juha's change:
http://wiki.freepascal.org/Lazarus_1.2.0_release_notes#TComponentPropertyEditor_behavior_was_changed

Mattias


Strange, is this the way it works in Delphi? Why not invent something  
specifically for ActiveControl instead?


Jesus Reyes A.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] DB aware components

2013-09-16 Thread Antonio Fortuny

Hi Folks.

Is it normal that when a TDBGrid is dropped onto a TFrame (or 
descendant) the DataSource property cannot be assigned to a TSqlQuery 
dropped onto a TDataModule ? In other words, in the properties 
inspectior of the TDBGrid, the Datasource property shows nothing.

The TDataModule is in the uses clause of the TFrame Interface.
Otherwise when the TDbGrid is doppêd onto a TForm, the DataSource shows 
all TDataset descendants dropped into the TDataModule. It appears to be 
the same for all data aware components that I have tested so far.
Finally, assigning the datasource at runtime appears to work. But this 
is a workaround.


Antonio.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] DB aware components

2013-09-16 Thread Mattias Gaertner
On Mon, 16 Sep 2013 10:52:08 +0200
Antonio Fortuny a.fort...@sitasoftware.lu wrote:

 Hi Folks.
 
 Is it normal that when a TDBGrid is dropped onto a TFrame (or 
 descendant) the DataSource property cannot be assigned to a TSqlQuery 
 dropped onto a TDataModule ? In other words, in the properties 
 inspectior of the TDBGrid, the Datasource property shows nothing.
 The TDataModule is in the uses clause of the TFrame Interface.
 Otherwise when the TDbGrid is doppêd onto a TForm, the DataSource shows 
 all TDataset descendants dropped into the TDataModule. It appears to be 
 the same for all data aware components that I have tested so far.
 Finally, assigning the datasource at runtime appears to work. But this 
 is a workaround.

Maybe a result of Juha's change:
http://wiki.freepascal.org/Lazarus_1.2.0_release_notes#TComponentPropertyEditor_behavior_was_changed

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] DB aware components

2013-09-16 Thread Antonio Fortuny


Le 16/09/2013 11:12, Mattias Gaertner a écrit :

On Mon, 16 Sep 2013 10:52:08 +0200
Antonio Fortuny a.fort...@sitasoftware.lu wrote:


Hi Folks.

Is it normal that when a TDBGrid is dropped onto a TFrame (or
descendant) the DataSource property cannot be assigned to a TSqlQuery
dropped onto a TDataModule ? In other words, in the properties
inspectior of the TDBGrid, the Datasource property shows nothing.
The TDataModule is in the uses clause of the TFrame Interface.
Otherwise when the TDbGrid is doppêd onto a TForm, the DataSource shows
all TDataset descendants dropped into the TDataModule. It appears to be
the same for all data aware components that I have tested so far.
Finally, assigning the datasource at runtime appears to work. But this
is a workaround.

Maybe a result of Juha's change:
http://wiki.freepascal.org/Lazarus_1.2.0_release_notes#TComponentPropertyEditor_behavior_was_changed

Could be but I'm currently using 1.0.12 and not 1.2.
I'm moving and re-engineering a Delphi application and I wonder how much 
time I'll loose recoding the Datasources properties :-(


Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus





--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] DB aware components

2013-09-16 Thread Antonio Fortuny

In the same way, travelling within a TFrame components doesn't work too.
When clicking over any component on the TFrame using either TAB or any 
other arrow key has no effect.

At runtime, it works.

Antonio.



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] DB aware components

2013-09-16 Thread Antonio Fortuny

Same for TImageList.
A TImageList is dropped onto a TDataModule, included in the interface 
uses, but a TToolBar does not see the TImagesList in the TDataModule.

This breaks completely the porting from Delphi.
I'm really very disapponted.

I've made another test as explained in the Wiki page 
http://wiki.freepascal.org/Frames

- build a new TFrame
- add the unit to the project units list (otherwise it is not droppable)
- drop it onto a TTabSheet of a TPageCpntrol in the main form
- drop a TSqlQuery onto the TFrame: this time, the objects in the 
TDataModule created before, are displayed in properties of the TFrame 
components (database for TSqlQuery, i.e.).

It's a long way to ...
This way does not allow to create independent TFrames and fill them with 
all pertinent components and code and that's exactly what I need.
All the TFrames are independent and dynamically created as the user runs 
thru the application.


Antonio.



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus