Solved

Doc/View app

Posted on 2004-08-09
4
258 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
[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
  • 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

Independent Software Vendors: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sum67 challenge 35 115
only14 challenge 19 84
wait notify demo infinite loop 3 136
Thin secure Windows 10 5 107
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…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

735 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