im trying to create an acrobat plug-in.....which i did...
...here acrobat frame is the main frame....
from its menu items i select wxwidget frame.....
Code: Select all
MyFrame *frame = new MyFrame((wxFrame *)mainFrame, _T("wxWidgets Frame"));
// Show the frame
frame->Centre(wxBOTH);
frame->Show(true);
.... (below) is the frame code.....
Code: Select all
/********************
frame.cpp
- wxWidgets - frame
*********************************************************************/
#include "wx/app.h"
#include "wxInit.h"
#include "dialogs.h"
// My frame constructor
MyFrame::MyFrame(wxWindow *parent,const wxString& title)
: wxFrame(parent, wxID_ANY, title)
{
CreateStatusBar();
SetStatusText( "Welcome to wxWindows!" );
}
MyFrame::~MyFrame()
{
}
void MyFrame::OnClose(wxCloseEvent& event)
{
Show(false);
Destroy();
}
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
EVT_CLOSE(MyFrame::OnClose)
END_EVENT_TABLE()
adding status bar to frame was easy.....
now how do i add menubars....menuitems.... toolbar to it?