Recent

Author Topic: Refreshing Frame within Form during edit  (Read 3895 times)

egsuh

  • Hero Member
  • *****
  • Posts: 1292
Refreshing Frame within Form during edit
« on: July 30, 2018, 07:37:45 am »
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?
« Last Edit: November 18, 2018, 12:11:18 pm by egsuh »

af0815

  • Hero Member
  • *****
  • Posts: 1291
Re: Refreshing Frame within Form during edit
« Reply #1 on: July 30, 2018, 09:21:04 am »
Try to close the form and reopen it.

Don't forget to save :-)
regards
Andreas

egsuh

  • Hero Member
  • *****
  • Posts: 1292
Re: Refreshing Frame within Form during edit
« Reply #2 on: July 30, 2018, 12:03:04 pm »
@af0815
WOW!!! it works. Really Thank You.

egsuh

  • Hero Member
  • *****
  • Posts: 1292
Re: Refreshing Frame within Form during edit
« Reply #3 on: November 18, 2018, 12:11:40 pm »
This doesn't work again.

jamie

  • Hero Member
  • *****
  • Posts: 6133
Re: Refreshing Frame within Form during edit
« Reply #4 on: November 18, 2018, 03:44:44 pm »
Delphi claim that frames can be saved to the Component bar, I would like to know how that is done with
Lazarus?
The only true wisdom is knowing you know nothing

HeavyUser

  • Sr. Member
  • ****
  • Posts: 397
Re: Refreshing Frame within Form during edit
« Reply #5 on: November 18, 2018, 05:05:24 pm »
This 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

  • Hero Member
  • *****
  • Posts: 11916
Re: Refreshing Frame within Form during edit
« Reply #6 on: November 18, 2018, 05:33:20 pm »
This 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 project
  • Using File > New > Frame create a new frame
  • Design its contents and save the frame
  • Go to the project's form in which you want to insert the frame
  • Click 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 OK
  • Now the frame is in the form
  • Go 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.

 

TinyPortal © 2005-2018