Home » Community » Coffee corner » U++ for newbees
Re: U++ for newbees [message #24932 is a reply to message #24916] |
Fri, 05 February 2010 04:33 |
alendar
Messages: 47 Registered: January 2010 Location: Idaho, USA
|
Member |
|
|
I like the AddressBook example. I used it to get started.
A Child window: Do you mean open a window from another main window?
Here's what I did (right or wrong):
In my main window definition:
1) AboutWin aboutWindow; // private, no need to make it public
2) To a menu click, I put "aboutWindow.Open();"
This created a modeless window and showed it.
3)
void Close() {
TopWindow::Close();
}
Easy-peezy! It took a while to figure out though. There's an example of having a bunch of main windows and how to have a single event loop, but I didn't need anything fancy.
Note that you need to replace "TopWindow" with whatever you subclassed, or you'll miss something.
cd7651feeb698f6ac6cec1f6deda5e5b
|
|
|
Goto Forum:
Current Time: Thu Jun 13 02:04:33 CEST 2024
Total time taken to generate the page: 0.01161 seconds
|