Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

implementing docking denial

Posted on 2000-05-01
2
Medium Priority
?
495 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 120 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

877 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