Can not add new component! lazarus / 10-Designer ---------------------------------------------------------------------- Peiman · 2010-12-19 16:56 Hi! I use laz 9.28(64 bit) for Win 7. I can not add a component to a certain panel and its children! however, i can do this on other panels on the form! Have any one saw a same thing? ---------------------------------------------------------------------- DirkS · 2010-12-19 17:22 A bit more info would be helpful... Do you get an error message? Which component causes problems (or does it affect *any* component)? Can you add the *same* component to other panels? Gr. Dirk. ---------------------------------------------------------------------- Peiman · 2010-12-19 18:59 no error at all. I put the components on the panels, save the form/unit, close it. but none of the newly added components are shown at reopen. (simply they are not saved to .lfm file but listed under the form declaration in the unit file) nothing more can be added to that panel and its child panels. this is the hierarchy (with the align property): Code: [Select]form1   panel13 : alclient     panel14 : altop       panel15 : albottom         label7 : alleft         floatspinedit1 : alleft         (here i tried to add floatspinedits and checkpoints) and everything can be placed on other panels (1 to 12) and groupboxes. I tried these, but in vein: - deleted the panel. created another panel. and add components. but only a number of them were saved (as the mentioned hierarchy) - I copied the panel (and its component) on another form. the same result. - made a new form, created only mentioned components (without copy/paste). But this was somehow successful : - wrote it under the form declaration, typed in the lfm file manually. and first saved the form then the .lfm file. it seems that lazarus is allergic to this hierarchy composition . Please try it and let me know. (I think the align is not so important. besides make more than one additional components on the panels) ---------------------------------------------------------------------- Peiman · 2010-12-22 17:02 I found the possible cause of the bug : it is not related to panels. it is just about FloatSpinEdit! Just one floatspinedit is allowed on a form!!!!!! Damn! Or the second one may destroy all other components too! ---------------------------------------------------------------------- garlar27 · 2010-12-22 17:45 Are you sure that it wasn't added to the .lfm file? I had what I think could be the same problem: when trying to add a component inside a TPanel or a TTabSheet it looked like Lazarus couldn't add the control at all but it was added as a form child instead the above mentioned controls (object inspector confirmed that) and they weren't visible because they were right beneath th panel or page control. Other problem that I had was that sometimes the control was where I place it, but it wasn't visible though I could select it. After closing Lazarus and run it again everything was fine. ---------------------------------------------------------------------- jenson1424 · 2011-01-03 17:57 Please reply with the error message you receive there?