Originally shared by Jeroen Wiert Pluimers

Originally shared by Jeroen Wiert Pluimers

Seems my Google Foo is letting me down today:

is there any way when you use a frame on a form to ensure that the controls in that frame cannot be moved?

Basically I want to have the layout in the frame to be fixed.

Comments

  1. Is there a way?

    This is one of the reasons I have not been using frames (that and its corollaries: ensuring that both events are not added to frame components, and components are not added as child to frame components).

    ReplyDelete
  2. Not possible. I don't insert frames at design time but create them at runtime. I use a panel without bevel as a placeholder.
    To get a more visual design experience, you could use a TImage with a screen shot of the frame instead. But that means having that image as part of your program.
    Or convert it into a component ...
    Actually, writing a component that refers to a frame, shows a picture of it at design time and instantiates it at runtime would be a cool side project. Any takers?
    Or maybe somebody wants to write an expert that makes a frame read only like the IDE already allows you to do for a form...

    ReplyDelete
  3. Thomas Mueller if I knew how the IDE did it for the whole form...

    ReplyDelete
  4. Thomas Mueller +1000 on the "don't insert frames at design time" part

    ReplyDelete

Post a Comment