Solved

Doc/View app

Posted on 2004-08-09
4
239 Views
Last Modified: 2013-11-20
Hi all
If I have a Doc/View based app on evc, is it possible to have all my options on the mainframe menu, and when a dialog is being display, I can still access to the menu options (that are at the bottom)...?
0
Comment
Question by:mwcmp
  • 3
4 Comments
 
LVL 4

Accepted Solution

by:
r2far earned 100 total points
ID: 11754268
yes and no... to do so you would need to make the dialog Modeless.  but in doing so when you click a menu outside of the dialog, the dialog may be obscured by the window or app containing the menu.  Modal dialogs (most are) prevent focus switching to the parent till they are closed (in relation to their parent window or app, and not the system).

Is there a better Idea of what this is for.  Maybe alternatives can be suggested.  

Hope I can Help =]
0
 

Author Comment

by:mwcmp
ID: 11754403
Making the dialog modeless also means that the title bar can be seen? Am I right?
0
 
LVL 4

Expert Comment

by:r2far
ID: 11755386
modeless dialog simply means that the dialog will allow focus sharing.  model dialog boxes demand user attention.  Modeless dialogs are typically used when you need bi-directional communication between a dialog and it's parent while the dialog box is still open and active.

Modal dialog created using the DoModal() function.

Modeless dialog does not use DoModal().  In fact... If you 'create' a modeless dialog, DO NOT call DoModal() or the program will crash.

CSomeDlg dlg;
dlg.Create(IDD_DIALOG,this);    // IDD_DIALOG is the dialogs template ID, 'this' is standard pointer.  replace it with whatever window you want to be the dialogs parent.
dlg.ShowWindow(SW_SHOW);

// you must destroy a modeless dialog when you are donw with it
dlg.DestroyWindow();


Hope This Helps,
0
 
LVL 4

Assisted Solution

by:r2far
r2far earned 100 total points
ID: 11755407
Oh... I answered your question indirectly... here is the direct answer.

If the dialog template includes a titlebar, then the dialog will have a title whether it is modal or modeless.  The only exception I know of is Dialog Bars (special toolbars)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

895 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now