Board index » cppbuilder » BCB5: Dynamic MDI Forms and Images
Ben Thompso
![]() CBuilder Developer |
Wed, 04 Feb 2004 13:14:37 GMT
BCB5: Dynamic MDI Forms and Images
I suspect I need to read a book about this - please recommend one if so!
Otherwise: How do I dynamically generate a form with a number MDI children, each void __fastcall TForm1::FormCreate(TObject *Sender) Quote} { for ( int i = 0; i < 10; ++i ) { myform[ i ] = new TForm1( this ); } Quote} { for ( int i = 0; i < 10; ++i ) { // Doing the following statements in the body of the loop in Wibble1 // didn't work for some reason myform[ i ] -> Width = 140; myform[ i ] -> Height = 140; myform[ i ] -> FormStyle = fsMDIChild; } Quote} void __fastcall TForm1::Wibble3(TObject *Sender) Quote} I have tried creating the TImages with im = new TImage( this ) and then Any thoughts, code fragments and book recommendations very welcome. Thanks |