start-up event Topic is solved
start-up event
Quick question . . .
I have a simple frame with a wxListBox (nothing else) and I want to "read" some data from a text file into it.
I know how to read the data into the wxListBox but my issue is that I want to do it on start-up.
How can I get this done on start-up?
I am very new to wxWidgets and a couple lines of code will be very helpful.
Thanks.
I have a simple frame with a wxListBox (nothing else) and I want to "read" some data from a text file into it.
I know how to read the data into the wxListBox but my issue is that I want to do it on start-up.
How can I get this done on start-up?
I am very new to wxWidgets and a couple lines of code will be very helpful.
Thanks.
-
- Super wx Problem Solver
- Posts: 497
- Joined: Mon Nov 06, 2006 9:58 pm
Code: Select all
int main()
{
cout << "Hello world!" << endl;
return 0;
}
I still don't see how it falls in here -
Code: Select all
class MyApp : public wxApp
{
public:
virtual bool OnInit();
};
DECLARE_APP(MyApp)
IMPLEMENT_APP( MyApp )
bool MyApp::OnInit()
{
wxInitAllImageHandlers();
mainFrame *frame = new mainFrame(NULL);
frame->Show(true);
SetTopWindow(frame);
return true;
}
-
- Super wx Problem Solver
- Posts: 497
- Joined: Mon Nov 06, 2006 9:58 pm
-
- Super wx Problem Solver
- Posts: 497
- Joined: Mon Nov 06, 2006 9:58 pm
-
- Super wx Problem Solver
- Posts: 497
- Joined: Mon Nov 06, 2006 9:58 pm