mtweidmann Posted October 31, 2003 Report Share Posted October 31, 2003 I know this is Windows stuff, not Linux but hopefully one of you knows what I am doing wrong. :) I'm trying to write a small Windows app in C++ for Uni, using Borland Builder 5. the app is meant to have a main window with various components on. One of these is a button for creating a new file. When this button is clicked I wanted a new window to open, you type settings into it and then it closes. The program compiles and the main window displays (and works) properly, but the sub-window will not open. The main window class is called TForm1 and is a decendant of the TForm class. The sub-window is called TFrame2 is a decendant of the TFrame class. Because its created dynamically (ie not there all the time) this is how I'm trying to get the new window to open. TFrame2* NewDesign; NewDesign = new TFrame2(this); I know the function that runs this code is being executed, but no window appears. do I ahve to call some extra functions? HELP!! :( Quote Link to comment Share on other sites More sharing options...
mtweidmann Posted October 31, 2003 Author Report Share Posted October 31, 2003 Ok I've managed to find a work round. I now have both windows as Forms rather than Frames which seems to work. But if anyone knows what I was doing wrong originally I'm still like to know. joker Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.