Solved

Undocking Dialogs outside of parent window?

Posted on 2001-09-13
9
262 Views
Last Modified: 2013-11-20
I want to begin a project and have an idea in mind, though don't know how to go about starting it.

My project is going to have many dialog/form views, to one document. So will probably go with a SDI CFormView based project, or Dialog based.

I'd like to have a vertical splitter, with one pane being used for the dialogs. The other side will be used to go to all the other dialogs (tree view or list view, or tabs, etc).

However, if my user wants to see more than one dialog at a time, I want to be able to "pop out" a dialog from the parent frame, and have it sort of float anywhere on the desktop. In this way, they can either see one dialog contained within one app. frame, or they can have many dialogs placed around the desktop for easy viewing.

Any ideas on where to start, or to search further?

Thanks,
0
Comment
Question by:gunn
[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
  • 5
  • 3
9 Comments
 
LVL 49

Accepted Solution

by:
DanRollins earned 100 total points
ID: 6480972
The easiest way to do that in MFC may be to create one or more modeless dialogs.  Modeless dialogs can float all over the place.

There may be some extra work, depending upon what actions you need these dialogs to perform.  They will be outside of the normal "document/view" architecture so if you want the File/Open to work like it does in an MDI, you will need to dig into some MFC internals.  However, there is nothing really sacred about the MFC concept of a "Document" (it often just confuses the issue) nor is there anything difficult about handling the "read document" stuff in the OnInitDialog() fn and the "Save document" stuff in the OnOk() fn.

-- Dan
0
 

Author Comment

by:gunn
ID: 6481566
I've been wondering about the doc/view architecture...wondering basically that I may not want to use it, *if* that is possible. All of my smaller apps have used it, just because. But since this is larger, and I can't get it to mold to the doc/view way, I'm wondering if I can work around it, not use it at all?

I'll do some tests with some modeless dialogs and see how that works. Thanks for the tip. I'll get back with an update.
0
 
LVL 1

Expert Comment

by:MRNMurthy
ID: 6482869
Hi,

I will make an attemp & I will update my comments.

From

MRN Murthy
0
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 
LVL 49

Expert Comment

by:DanRollins
ID: 6496295
hi gunn,
Do you have any additional questions?  DO any comments need clarification?

-- Dan
0
 

Author Comment

by:gunn
ID: 6496519
Hi Dan,

Actually, I was just waiting on MRN for a reply. And I'm still trying to get around to doing some testing on the concept and see if/how it turns out. I'll be back... ;)
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 6497597
MRNMurthy has chimed in with similar informationless "I'll check into this and get back to you" posts in about a dozen recent Qs.  I have not seen him keep any of those promises.

-- Dan
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 6516013
hi gunn,
Do you have any additional questions?  Do any comments need clarification?

-- Dan
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 6639957
hi gunn,
Do you have any additional questions?  Do any comments need clarification?

-- Dan
0
 

Author Comment

by:gunn
ID: 6652940
Back to civilization....I was able to put together a quick demo using modeless dialogs. That pretty much worked the way I wanted. I was able to use the size of the main parent window to make the modeless dialog size itself to the window when "inside it" to make it look like it was, but it was able to be dragged outside around it.

Another guy exploring the same concept worked out an even better solution, though I don't know the details yet, we'll be going that route. Once we get back to this particular project....

Thanks,
0

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! 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

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

626 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