Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2023-12

Anchordocking - Undo docking

2 messages · 1 person · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Roger Olsson

I'm trying to learn more about using anchordocking in my applications. Looking at the sources (+8000 lines only in the anchordocking unit)is a lot to take in. :-)

Lets say a form has been docked already. Whats the simplest way of undoing the docking? I don't mean just floating it, but also to remove its TanchorDockHostsite and restoring the borders and the rest to the forms original state, how it was before docking?

Regards
Roger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20231204/33d3f490/attachment.htm>

Reply by email

Roger Olsson

Here is what I'm trying to do:

There should be a set of forms docked inside the main form, and then be possible to switch to another group of forms, hiding the first group of forms until they are switched back to.

Someone at the Lazarus forum suggested to simply switch by using saved configs for each set of forms. After coding this, a problem came up: loading another set of forms automatically closes the first set, even if they are undocked. I'd like them to stay open but not visible.

So thats the why I want the forms back to how they were before calling MakeDockable. Or some other solution how to switch between different docked layouts?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20231206/420f0a27/attachment.htm>

Reply by email