Search found 22 matches

by chenzhengxi
Mon Feb 13, 2006 6:18 pm
Forum: C++ Development
Topic: the problem of resize event
Replies: 5
Views: 875

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.
by chenzhengxi
Mon Feb 13, 2006 4:20 pm
Forum: C++ Development
Topic: the problem of resize event
Replies: 5
Views: 875

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? whe...
by chenzhengxi
Sat Feb 11, 2006 7:24 pm
Forum: C++ Development
Topic: How to use Embedded Resource Files?
Replies: 1
Views: 328

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?
by chenzhengxi
Tue Jan 24, 2006 3:18 pm
Forum: C++ Development
Topic: Why I must rewrite CreateGrid() in my grid class?
Replies: 3
Views: 630

oh ,I known,thanks
by chenzhengxi
Tue Jan 24, 2006 12:31 pm
Forum: C++ Development
Topic: Why I must rewrite CreateGrid() in my grid class?
Replies: 3
Views: 630

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...
by chenzhengxi
Wed Jan 18, 2006 1:29 am
Forum: wxDev-C++
Topic: a problem
Replies: 2
Views: 614

thanks
it is ok now
by chenzhengxi
Tue Jan 17, 2006 10:27 am
Forum: wxDev-C++
Topic: a problem
Replies: 2
Views: 614

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...