DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: REQ: App/Hotkey to detact a child window from an application.  (Read 6,085 times)

rsteward

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 22
Would it be possible with AHK or something else to create a hotkey that would allow the user to detach a child window from an MDI frame and present it in a dialog type box that can be dragged anywhere on any monitor (outside of the mdi frame)?

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: REQ: App/Hotkey to detact a child window from an application.
« Reply #1 on: February 02, 2016, 04:21 PM »
Standard Windows MDI doesn't allow that.
Only application frameworks that explicitly support that, as used in some office applications and recent Visual Studio editions, can have their windows pulled out of the main frame. Then pulling it out is usually the easiest way to do it, as you'll want to position it somewhere specific.
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

Lintalist

  • Participant
  • Joined in 2015
  • *
  • Posts: 122
Re: REQ: App/Hotkey to detact a child window from an application.
« Reply #2 on: February 08, 2016, 07:09 PM »
Do you only want to retain the information in the Child window and keep it on screen while you dismiss it and continue to work in your program?
If so, you can try and see if AHK can read the information (assuming it is text) from the Window and display it in a alwaysontop AHK gui.

Or if not "clone" the window as an image and display it as such (could again be an AHK GUI or use GDI+ to display the image - you can also use GDI+ to "clone" or "copy" the window as image.

Original address: https://www.donationcoder.com/forum/index.php?topic=42285.0