data between forms sdi
-
Hi how to transfer datas from one form to another form in sdi application.. I am using splitter window type application for my project. and is ther any way to trigger an button click event... Regard Gany
In general, the forms in your SDI application should represent some part of your model (the document class). In general, you should avoid direct "comunication" between two forms but one form should update the document which in turn notifies all the views that its state has been updated. The other views can then request the new state of the document and update themselves. On the other hand, if you really need direct access between the two forms, then this simply resolves to OOP: you just past the instance of one form to the instance of the other form. But if possible, you should avoid this solution.
Cédric Moonen Software developer
Charting control [v3.0] OpenGL game tutorial in C++ -
Hi how to transfer datas from one form to another form in sdi application.. I am using splitter window type application for my project. and is ther any way to trigger an button click event... Regard Gany
you should disconnect data (and its processing) and view. Than you show the data in the views, and handle the "data changed" message to show actual data. It gives you flexibility to change you GUI later :-O
Press F1 for help or google it. Greetings from Germany