• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 600
  • Last Modified:

Draging a Panel outside of a MDI form...

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
Michael Sterling
Asked:
Michael Sterling
  • 3
  • 3
1 Solution
 
Geert GruwezOracle dbaCommented:
On what are you dragging it ?

In other form of same Delphi app ?
0
 
mikelittlewoodCommented:
Where do you want to drag it to?
0
 
Michael SterlingWeb Applications DeveloperAuthor Commented:
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
mikelittlewoodCommented:
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
 
Michael SterlingWeb Applications DeveloperAuthor Commented:
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
 
mikelittlewoodCommented:
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
 
Michael SterlingWeb Applications DeveloperAuthor Commented:
true,..i'll do just that. thanks
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now