Solved

implementing docking denial

Posted on 2000-05-01
2
489 Views
Last Modified: 2010-04-04
I have a TControlBar with 1 memo sitting on it. Align=top.
I have a second TControlBar with 3 toolbars on it. Align=bottom.

TControlbar is autosize=true
he memo & toolbars: dragkind=auto, dragmode=docksite

I want the memo to be able to be dragged away but not into the other TControlBar.  I intercepted one TcontrolBar's DockOver event and thought that by interrogating
  Source: TDragDockObject
that I could distinguish what object was attempting to dock, and deny it/allow it.
Unfortunately the TDragDockObject doesn't have many properties, and I cannot determine if what is actually being dragged is memo2 or toolbar2 or toolbar3 etc. which are components with names etc.

How do I get from the skimpy TDragDockObject parameter to knowing which component/control is being dragged in order to deny the dock operations etc. ?

I am using Delphi 4
0
Comment
Question by:abulka
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
shenqw earned 30 total points
ID: 2765512
TDragDockObject.Control is which component/control is being dragged!!!

0
 

Author Comment

by:abulka
ID: 2765513
Edited text of question.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses
Course of the Month5 days, 9 hours left to enroll

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question