Solved

implementing docking denial

Posted on 2000-05-01
2
485 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.

911 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now