GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 16-Apr-2007, 17:04
bimgot bimgot is offline
New Member
 
Join Date: Apr 2007
Posts: 1
bimgot is on a distinguished road

dialog controlling CFormView variables??


hi

i've written a basic form application with some slider controls which control some parameters, and now i'd like to add a dialog box which contains a set of alternate controls for the same parameters in the main form - so in effect have 2 slider controls for one parameter (the parameters controlled are volumes for different audio buffers in a basic audio sequencer).

from looking around at examples i managed to code a modal dialog box which when opened, retrieved the current value of the slider on the main form and set the corresponding slider on the dialog to this value. then when the dialog is submitted (ie doModal()==IDOK) the value from the dialogs slider is retrieved and the corresponding slider on the main form, (and therefore the parameter) is set to this value.

this is all well and good except i'm trying to achieve a solution which updates the variables in the main form as the controls in the dialog are altered (as they are volume controls they need to update in real time). currently you can alter the controls but obviously it does nothing until the dialog is submitted using IDOK..

i've looked at modeless dialogs but i dont actually need to control the main application window whilst the dialog is open and was therefore wondering if there would be an easier way?

hope this makes sense, i can give code if required..

thanks in advance
 
 

Recent GIDBlogPython ebook by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
combox close on enter in vc++ dialog neo79 MS Visual C++ / MFC Forum 1 18-Aug-2006 10:06
Accessing values from a different dialog steph MS Visual C++ / MFC Forum 11 21-Jul-2006 19:55
variables return to previous value after i try to set them nasaiya MS Visual C++ / MFC Forum 2 14-Jun-2005 01:43
dialog based application hezyse MS Visual C++ / MFC Forum 1 20-Mar-2005 19:16
Help! Some basal questions about MFC xutingnjupt MS Visual C++ / MFC Forum 1 05-Dec-2004 04:38

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 05:17.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.