oh,no
I do follow you,the problem continue
And i debug it,it break at the function SetMenuBar(...);
if I romove it ,the program run ok.
Search found 22 matches
- Mon Feb 13, 2006 6:18 pm
- Forum: C++ Development
- Topic: the problem of resize event
- Replies: 5
- Views: 1903
- Mon Feb 13, 2006 4:20 pm
- Forum: C++ Development
- Topic: the problem of resize event
- Replies: 5
- Views: 1903
the problem of resize event
I wrote a very simple program.one frame,one menu,one button but the sentence SetMenuBar( menuBar ) cannot exist with the EVT_SIZE(MyFrame::OnSize) void MyFrame::OnSize(wxSizeEvent& event) { if(myButton) { wxSize size = GetClientSize(); myButton->SetSize(0,0,size.x,size.y); } event.Skip(); } why?...
- Sat Feb 11, 2006 7:24 pm
- Forum: C++ Development
- Topic: How to use Embedded Resource Files?
- Replies: 1
- Views: 551
How to use Embedded Resource Files?
I have generate "res.cpp" which contain all my resource files and initializtion it in MyApp::OnInit().
then I write like this:
wxXmlResource::Get()->LoadFrame(this,NULL, ......);
how to get the Frame name from res.cpp?
Is there any example about Embedded Resource Files?
then I write like this:
wxXmlResource::Get()->LoadFrame(this,NULL, ......);
how to get the Frame name from res.cpp?
Is there any example about Embedded Resource Files?
- Tue Jan 24, 2006 3:18 pm
- Forum: C++ Development
- Topic: Why I must rewrite CreateGrid() in my grid class?
- Replies: 3
- Views: 1007
- Tue Jan 24, 2006 12:31 pm
- Forum: C++ Development
- Topic: Why I must rewrite CreateGrid() in my grid class?
- Replies: 3
- Views: 1007
Why I must rewrite CreateGrid() in my grid class?
class myGrid :public wxGrid { public: myGrid(...):wxGrid(...){} bool CreateGrid( int numRows, int numCols, wxGrid::wxGridSelectionModes selmode = wxGrid::wxGridSelectCells ) { return wxGrid::CreateGrid(numRows,numCols,selmode); } }; myGrid a=new myGrid(...); a.CreateGrid(...); look,all the cell in m...
a problem
I am a beginner,I found a bug when I use it with wxwidgets. I use toolkit in *.wxform and add a wxTextCtrl widget .Then I write a class myTextCtrl base on wxTextCtrl in order to extend the function,so I change all the wxTextCtrl to myTextCtrl. but it resume when I compile it. I have meet the problem...