?
Solved

Draging a Panel outside of a MDI form...

Posted on 2008-10-21
7
Medium Priority
?
599 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:Michael Sterling
[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
  • 3
  • 3
7 Comments
 
LVL 38

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:Michael Sterling
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
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!

 
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:Michael Sterling
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 2000 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:Michael Sterling
ID: 31508340
true,..i'll do just that. thanks
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month15 days, left to enroll

771 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