On Sat, 2 Feb 2013 12:33:52 +0100 Joost van der Sluis <[email protected]> wrote:
> Hi all, > > I'm writing my own method propertyeditor. And I want it to create the source > for a new method. Only problem is that it should use the RTTI-information to > obtain the method's parameters. > > Now if I look at TMainIDE.OnPropHookCreateMethod, it does exactly what I want > except that CodeToolBoss.CreatePublishedMethod is called with the > UseTypeInfoForParameters parameter set to false. In my case it has to be > true. ;) Why? The RTTI might use mediator objects or things from the wrong platform. The codetools use the project sources and that's what the compiler is seeing too. > Now I could try to write my own method which does the same thing, but then > I'll need several things which are defined in the ide-package, which I can > not use. Especially the FormEditor1.CreateNewJITMethod is necessary, or else > it is not possible to return a create JITMethod for the new event. Wow. That's the worst hack of the IDE. I was glad to get rid of it and now someone asks for its return. Are you sure you need them? > Any ideas how to proceed? Mattias -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
