Solved

Undocking Dialogs outside of parent window?

Posted on 2001-09-13
9
258 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
Industry Leaders: 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 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sameEnds challenge 3 196
if loop in java 3 174
firstChar challenge 13 149
Problem to App source 6 120
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Suggested Courses

738 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