Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Doc/View app

Posted on 2004-08-09
4
Medium Priority
?
274 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 300 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 300 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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 …
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.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

704 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