mtweidmann Posted October 31, 2003 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!! :( Link to comment Share on other sites More sharing options...
mtweidmann Posted October 31, 2003 Author 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now