Nikolai459
07-31-2006, 03:06 PM
Hey guys,
I'm not really sure what code this is, I think it may be python but I've never really worked with it before...
I need to know how to display an icon. Right now this displays a gui window with a Title, position and size. I'm not sure exactly how to add a icon to make it work with this format.
Any help would be appreciated, thanks!
bool Pressnet::OnInit()
{
MainFrame *frame = new MainFrame("Window Title", wxPoint(50,50), wxSize(600,500) );;
CFActive=FALSE;
DBCFActive=FALSE;
initData();
frame->Show(TRUE);
SetTopWindow(frame);
return TRUE;
}
MainFrame::MainFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
: wxFrame((wxFrame *)NULL, -1, icon, title, pos, size)
I believe that the icon would go in front of the title declaration, but just not sure how to make it work. Thanks in advance!
I'm not really sure what code this is, I think it may be python but I've never really worked with it before...
I need to know how to display an icon. Right now this displays a gui window with a Title, position and size. I'm not sure exactly how to add a icon to make it work with this format.
Any help would be appreciated, thanks!
bool Pressnet::OnInit()
{
MainFrame *frame = new MainFrame("Window Title", wxPoint(50,50), wxSize(600,500) );;
CFActive=FALSE;
DBCFActive=FALSE;
initData();
frame->Show(TRUE);
SetTopWindow(frame);
return TRUE;
}
MainFrame::MainFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
: wxFrame((wxFrame *)NULL, -1, icon, title, pos, size)
I believe that the icon would go in front of the title declaration, but just not sure how to make it work. Thanks in advance!