Solved

Draging a Panel outside of a MDI form...

Posted on 2008-10-21
7
595 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 37

Expert Comment

by:Geert Gruwez
ID: 22768190
On what are you dragging it ?

In other form of same Delphi app ?
0
 
LVL 15

Expert Comment

by:mikelittlewood
ID: 22768197
Where do you want to drag it to?
0
 
LVL 1

Author Comment

by:mikesExpertExchange
ID: 22768331
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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 15

Expert Comment

by:mikelittlewood
ID: 22768466
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
ID: 22768660
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
ID: 22771854
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
ID: 31508340
true,..i'll do just that. thanks
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Comparing dates in Delphi. Greater than/ Less than 3 149
can't find the executable in Simulator 1 90
Performance of SQL statement 37 111
update joined tables 2 45
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…
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

813 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