![]() |
|
#1
|
|||
|
|||
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 GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
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