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.
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.
Is there a way?
ReplyDeleteThis 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).
/sub
ReplyDeleteEric Grange I think you're right: there isn't (apart from making it in a component): http://www.delphigroups.info/2/ad/408298.html
ReplyDeletedelphigroups.info - lock TFrame control ? - delphi
Not possible. I don't insert frames at design time but create them at runtime. I use a panel without bevel as a placeholder.
ReplyDeleteTo 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...
Thomas Mueller if I knew how the IDE did it for the whole form...
ReplyDeleteThomas Mueller +1000 on the "don't insert frames at design time" part
ReplyDelete