Le 18/06/2012 12:41, Bruce a écrit : > On Mon, 2012-06-18 at 12:19 +0200, Benoît Minisini wrote: >> Le 17/06/2012 12:59, Bruce a écrit : >>> No bugs or questions this time. Just some observations. >>> >>> 1) Using a library that contains an exposed form. >>> >>> If a library exposes a form then when using that library in the IDE in >>> another project, I see a "magical" method called $Load is exposed. I'm >>> not sure what this method is for, nor can I find it anywhere in the IDE >>> code. But it does have a strange effect... >>> >>> In the client project >>> >>> Dim myform as New LibraryForm1 >>> myform.$Load() >>> myform.ShowDialog >>> >>> (where LibraryForm1 is the form exposed in the library) >>> results in a form with twice its' contents. Strange. >> >> '$load' is the method that creates the controls in a form. It is called >> automatically from the constructor. So if you call it yourself, you have >> twice the controls. >> > Sounds fair enough. I didn't explain properly, perhaps the attached > screenshot will help. My question was aimed at its' appearance in the > autocomplete popup in the IDE. (FAbout is a form in a library.) >
OK. This method should not be public but private, this is a mistake in the compiler. I will fix it... -- Benoît Minisini ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user