Refreshing Frame within Form during edit lazarus / 31-LCL ---------------------------------------------------------------------- egsuh · 2018-07-30 05:37 Hi, I have frames embedded within a form (not programmatically).  But when I change something in the frames (e.g. adding a new button, etc.), the frames on the form do not refreshed automatically.  I have to drop the frame from the form, and then add again to refresh. Are there any other ways? ---------------------------------------------------------------------- af0815 · 2018-07-30 07:21 Try to close the form and reopen it. Don't forget to save :-) ---------------------------------------------------------------------- egsuh · 2018-07-30 10:03 @af0815 WOW!!! it works. Really Thank You. ---------------------------------------------------------------------- egsuh · 2018-11-18 11:11 This doesn't work again. ---------------------------------------------------------------------- jamie · 2018-11-18 14:44 Delphi claim that frames can be saved to the Component bar, I would like to know how that is done with Lazarus? ---------------------------------------------------------------------- HeavyUser · 2018-11-18 16:05 Quote from: egsuh on November 18, 2018, 12:11:40 pmThis doesn't work again. It works only when you add components never when you change them. Frames are design to allow you to change their internal components position, size and events to accommodate the form's use cases. So once inserted in the form the form tends to preserve its properties. ---------------------------------------------------------------------- wp · 2018-11-18 16:33 Quote from: egsuh on November 18, 2018, 12:11:40 pmThis doesn't work again. It is working correctly for me. Maybe you do something wrong along the line? These are the steps to work with threads: Create a new projectUsing File > New > Frame create a new frameDesign its contents and save the frameGo to the project's form in which you want to insert the frameClick on the Frame palette icon (Page "Standard", 2nd icon from the right. Then click on the form at the point where the frame should be inserted.A window pops up which prompts you for the frame to be inserted. Here rather meaningless because there is only 1 frame in the project, but very useful when you have several frames. Select the frame to be inserted (if you don't select any frame, nothing will happen!). Click OKNow the frame is in the formGo to the frame and change it, maybe add another component. Save the frame.Go back to the form. The changes of the frame are not visible. Middle-click on the form's tab in the editor to close the unit (or right-click and select Close Page). Load the unit again (I always have the project inspector open at the right side of the desktop. It lists all units belonging to the project. Just double- dlick on the unit in the list to open the unit)After the form has been reloaded you can see the changes.