Re[2]: [fpc-devel] LocalReferenceFixup

2010-10-11 Thread José Mejuto
Hello FPC, Monday, October 11, 2010, 9:07:44 AM, you wrote: Attached is the example. One form that load a menu which opens a new form which display a table in a grid. You will need to change the password setup, and maybe database (I'm using aliases instead full path), and of course the sql

Re[2]: [fpc-devel] LocalReferenceFixup

2010-10-08 Thread José Mejuto
Hello FPC, Friday, October 8, 2010, 8:35:44 AM, you wrote: Aha. In MSEgui application.createform()/createdatamodule() must be called in order to allow component linking with already loaded modules, t*form.create() is not enough. I don't know how this works in Lazarus. MG In Lazarus both use

Re[2]: [fpc-devel] LocalReferenceFixup

2010-10-08 Thread José Mejuto
Hello FPC, Friday, October 8, 2010, 1:41:39 PM, you wrote: Creation order -- 1) Create main form MS application.createform() or t*form.create() 2) Create data module MS application.createdatamodule(); 3) Wait in main form for user input 4) Create second form MS

Re: Re[2]: [fpc-devel] LocalReferenceFixup

2010-10-08 Thread Mattias Gärtner
Zitat von José Mejuto joshy...@gmail.com: Hello FPC, Friday, October 8, 2010, 1:41:39 PM, you wrote: Creation order -- 1) Create main form MS application.createform() or t*form.create() 2) Create data module MS application.createdatamodule(); 3) Wait in main form for user

Re[2]: [fpc-devel] LocalReferenceFixup

2010-10-07 Thread José Mejuto
Hello FPC, Thursday, October 7, 2010, 8:27:23 AM, you wrote: MS Maybe you mix up component creation order and form/datamodule creation order? MS I wrote about form/datamodule creation order. The datamodule is created just in program load, before any dependent component is created, so my

Re[2]: [fpc-devel] LocalReferenceFixup

2010-10-07 Thread José Mejuto
Hello FPC, Thursday, October 7, 2010, 8:30:06 PM, you wrote: MS Aha. In MSEgui application.createform()/createdatamodule() must be called in MS order to allow component linking with already loaded modules, t*form.create() MS is not enough. I don't know how this works in Lazarus. Thank you,

Re[2]: [fpc-devel] LocalReferenceFixup

2010-10-07 Thread José Mejuto
Hello FPC, Thursday, October 7, 2010, 9:21:18 PM, you wrote: Thank you, I'll try to gather more information from Lazarus list, but if that's the case it completly defeats the advantages of a datamodule and/or the presence of a published Active property in the SQLQuery (as it is only valid if

Re[2]: [fpc-devel] LocalReferenceFixup

2010-10-06 Thread José Mejuto
Hello FPC, Wednesday, October 6, 2010, 8:37:44 AM, you wrote: Yes, but it is not set, because BeginGlobalLoading is not called at [...] MS Avoid circular component references in the forms and adjust the creation order MS that the referencing forms are created later or use [...] MS Lazarus: MS

Re[2]: [fpc-devel] LocalReferenceFixup

2010-10-05 Thread José Mejuto
Hello Martin, Tuesday, October 5, 2010, 9:56:41 AM, you wrote: I find a problem that I'm unable to resolve, with my limited skills. In TReader when a property is a TClass it is being added to be resolved after all components are loaded, but the Loaded call is performed before this fixup, so

Re[2]: [fpc-devel] LocalReferenceFixup

2010-10-05 Thread Michael Van Canneyt
On Tue, 5 Oct 2010, José Mejuto wrote: Hello Martin, Tuesday, October 5, 2010, 9:56:41 AM, you wrote: I find a problem that I'm unable to resolve, with my limited skills. In TReader when a property is a TClass it is being added to be resolved after all components are loaded, but the Loaded

Re[2]: [fpc-devel] LocalReferenceFixup

2010-10-05 Thread José Mejuto
Hello FPC, Tuesday, October 5, 2010, 4:08:08 PM, you wrote: As you can see the Loaded event is called (marked with some //-) before calling GlobalFixupReferences, MS Not if GlobalLoaded is set. Yes, but it is not set, because BeginGlobalLoading is not called at all from any point in the