Help with porting package lazarus / 31-LCL ---------------------------------------------------------------------- sin_dragan · 2015-04-28 03:07 Hi, I m porting some delphi component and I get the folowing error about Designer.Root.Name., not found. For example   Code: [Select] ... for j := 0 to Designer.Root.ComponentCount - 1 do... ... PropInfo := TypInfo.GetPropInfo(Designer.Root.Components[j].ClassInfo, 'Enabled'); ... I see this is refering to form, is there a another way to achieve this using PropEdits and ComponentDesigner units? ---------------------------------------------------------------------- taazz · 2015-04-28 06:58 I have no idea but designer has a lookuproot property see if that is what you need. ---------------------------------------------------------------------- sin_dragan · 2015-04-28 08:48 Quote from: taazz on April 28, 2015, 08:58:21 amI have no idea but designer has a lookuproot property see if that is what you need. I managed to compile the code using GetDesigner(Form).Name, but thx Im gonna try your advice too. Right now I m on my work and have a mail server crash otherwise I would try instantly EDIT: I just found that one Delphi code that I converted earlier that instead of Desinger.Root I should put Designer.Form (I think this is pre Delphi6 behaviour) but the class is inherited from TDefaultEditor and that compiles fine. But the class that I try to convert is inherited from PropertyEditor (FPC does'nt have Designer field), maybe somebody had similar problem? I also stubled on this, but I need to go through it: http://sourceforge.net/p/lazarus-ccr/svn/2456/tree//components/spktool bar/designtime/SpkToolbarEditor.pas?diff=517ec984271846340a8e495e:2455 )