MDI app w/ modal-less dialog box (inter-view communication) 
Author Message
 MDI app w/ modal-less dialog box (inter-view communication)

Hello.
    I am developing a MDI program using MFC4.2 (vc++ 5.0).  For each
view, at the users' request, I need to be able to create a modal-less
dialog box.  This dialog box will contain various controls.  When the
user uses the dialog box to change the values of the controls, I need
the view to know about it, so the view can adjust.  Also, if the user
has input focus on the view, and uses the keyboard to change the values
of the same parameters, I need the dialog box to stay in sync.
     I can create a modal-less dialog box just fine.  The dialog box
contains apointer to the "parent" view, so if the view changes, I can
just signal the dialog box, which can re-read the variables from the
view.
    But, how do I update the view that the box is mated to when the user
changes settings via the dialog box?

    I can think of a few ways, but I'm looking for the "proper" method.
Something clean & elegant....

    TIA,

   Dennis Jenkins
   Linscan Systems, Inc.



Mon, 12 Feb 2001 03:00:00 GMT  
 MDI app w/ modal-less dialog box (inter-view communication)
Use technicals as subscribers/observers ..
You also can use an update object to all views (method OnUpdate ()..)
Quote:

>Hello.
>    I am developing a MDI program using MFC4.2 (vc++ 5.0).  For each
>view, at the users' request, I need to be able to create a modal-less
>dialog box.  This dialog box will contain various controls.  When the
>user uses the dialog box to change the values of the controls, I need
>the view to know about it, so the view can adjust.  Also, if the user
>has input focus on the view, and uses the keyboard to change the values
>of the same parameters, I need the dialog box to stay in sync.
>     I can create a modal-less dialog box just fine.  The dialog box
>contains apointer to the "parent" view, so if the view changes, I can
>just signal the dialog box, which can re-read the variables from the
>view.
>    But, how do I update the view that the box is mated to when the user
>changes settings via the dialog box?

>    I can think of a few ways, but I'm looking for the "proper" method.
>Something clean & elegant....

>    TIA,

>   Dennis Jenkins
>   Linscan Systems, Inc.



Thu, 15 Feb 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. modal dialog to modal less

2. Modeless dialog box together with modal dialog box

3. MDI app, relative modal MDI childs

4. Communication between View and Dialog box?

5. Dialog box pop-up - SDI vs. MDI apps

6. Can I have a Dialog Based Window in an MDI non doc/view app

7. Modeless dialog boxes in MDI app

8. Dialog box pop-ups - SDI vs. MDI apps

9. How to remove certain doc types from the file|new dialog box in MDI apps

10. List boxes in Modal Dialog Box

11. dialog order / modal/less question

12. PBM: Message box not displayed after main dialog box is closed in MFC dialog-based app

 

 
Powered by phpBB® Forum Software