Solved

Draging a Panel outside of a MDI form...

Posted on 2008-10-21
7
592 Views
Last Modified: 2012-05-05
i have a panel that starts inside of an MDI form and would like to be able to drag it outside of the MDI form. is this possible in the OnDragOver event? If so how?
0
Comment
Question by:mikesExpertExchange
  • 3
  • 3
7 Comments
 
LVL 36

Expert Comment

by:Geert Gruwez
Comment Utility
On what are you dragging it ?

In other form of same Delphi app ?
0
 
LVL 15

Expert Comment

by:mikelittlewood
Comment Utility
Where do you want to drag it to?
0
 
LVL 1

Author Comment

by:mikesExpertExchange
Comment Utility
actually i just want the user to be able to drag it to anywhere, but not into another form or panel. in essence i just want to make the panel mobile.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 15

Expert Comment

by:mikelittlewood
Comment Utility
Well surely you want the panel to do something once you stop dragging?
If you don't you might as well just make it its own borderless form and treat it as dockable when and if required.
0
 
LVL 1

Author Comment

by:mikesExpertExchange
Comment Utility
so is that really the only option? to make it a form? i already have speed buttons on it with functionality that references other forms etc. in the application so it seems like it would be easier to give it (the panel) the ability to be dragged and dropped (to any where) and docked when needed. It already docks and undocks on a double click. i just want to be able to move it when it is undocked. I imagine some code on the OnMouseDown or OnDragOver would do it,..i was just looking for some samples/suggested code.
0
 
LVL 15

Accepted Solution

by:
mikelittlewood earned 500 total points
Comment Utility
Well a panel cannot exist in its own right I would think, only a form.
It shouldnt be too hard to retro fit it onto a borderless form though, no need (or very little) to alter the code you already have, just drop the panel on the form and set it to the form size.
0
 
LVL 1

Author Closing Comment

by:mikesExpertExchange
Comment Utility
true,..i'll do just that. thanks
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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 Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 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

10 Experts available now in Live!

Get 1:1 Help Now