Howdy, Stranger!

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

In this Discussion

limiting docking freedom

Being a LMD DockingPack newbie, I miss how-to´s or samples showing how to limit the users freedom (and thereby potential problems).

One example could be an ap where two panels are docked to the appplications right border. 
The user should be able to pull the pin and autohide both panels, but no additional panels should be dockable to this zone and the two panels sholud not be able to detach from this zone.
I think the key is the Site's OnDockOver event, but I'm unsure of the criterias.

Best regards
Roadrunner

Comments

  • 4 Comments sorted by Votes Date Added
  • To prevent panels from beeng dragged by the used you can use standard Delphi property DragMode. Just set it to dmManual.

    To prevent from docking anything into some zones you can use Site.OnDockOver event. Just set Accept parameter to False. However, its much better to use Site.OnUpdateHotSpots event where you can visually disable some hot-spots excluding them from EnabledAreas parameter value.
  • However, basically, its not a good idea to use docking and restrict the user. Actually, our docking solution was not designed to such things.
  • edited May 2012 Posts: 5Vote Up0Vote Down
    unfortunately Site.OnUpdateHotSpots does not contain info on the control being dragged onto the site?
Sign In or Register to comment.