Solved

Doc/View app

Posted on 2004-08-09
4
228 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
Comment Utility
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
Comment Utility
Making the dialog modeless also means that the title bar can be seen? Am I right?
0
 
LVL 4

Expert Comment

by:r2far
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 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

7 Experts available now in Live!

Get 1:1 Help Now