Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

How to set a control as root for TLMDDesigner?

I'm new to these components and am finding it difficult to set the root to say a regular TPanel.

For example, in the demo \..\demos\delphi\lmddesign\TLMDDesigner

In Form2 which is defined as the root, instead how can I add a Panel and make that the root like in the screenshot?

I tried following the help but found it confusing.

Thanks.
png
png
Untitled.png
61K

Comments

  • 2 Comments sorted by Votes Date Added
  • Posts: 0 Accepted Answer Vote Up0Vote Down
    You can either design a form (TCustomForm) with TLMDDesigner itself, or design a control (TWinControl) inside TLMDDesignPanel. TLMDDesignPanel contains an implicit form, which is required for internal Delphi's design functionality.
  • Thanks, I am still experimenting a lot with the demos to help understand it.

    I was wanting to do similar to Visual Studio where instead of showing the actual form in the panel, I wanted to draw my own custom painted form borders and use the designer in the client area of my fake form.

    I've almost got it working nicely but need to try and correct a few things :)
Sign In or Register to comment.