Search found 86 matches

by xin.songtao
Thu Jul 19, 2007 10:17 am
Forum: C++ Development
Topic: this is my code ,who can tell me where is wrong?
Replies: 7
Views: 1412

this is my code ,who can tell me where is wrong?

About.h #ifndef AboutH #define AboutH //--------------------------------------------------------------------------- class TfmAbout : public wxDialog { public: TfmAbout(wxWindow *parent, wxWindowID id,const wxString& title, const wxPoint& pos, const wxSize& size, long style ); wxButton *btnOk; wxButt...
by xin.songtao
Tue Jul 17, 2007 10:06 am
Forum: C++ Development
Topic: Is there a way to make the contrls change with the mainframe
Replies: 8
Views: 1016

thx tan , i think i see. :D
by xin.songtao
Tue Jul 17, 2007 9:02 am
Forum: C++ Development
Topic: Is there a way to make the contrls change with the mainframe
Replies: 8
Views: 1016

but in the frame is not only the toolbar , i have to create a wxListCtrl,how to deal with it?
by xin.songtao
Tue Jul 17, 2007 8:21 am
Forum: C++ Development
Topic: Is there a way to make the contrls change with the mainframe
Replies: 8
Views: 1016

benedicte: salut c'est un grand honneur pour moi que je pourrais vous rencontrer :) I have a try ,but fail,now I post my code as follow, becouse I am a green hand, Please point what's wrong in the code for me . merci! wxBoxSizer *topSizer = new wxBoxSizer(wxVERTICAL); // the toolbar wxBoxSizer *tool...
by xin.songtao
Tue Jul 17, 2007 7:43 am
Forum: C++ Development
Topic: Is there a way to make the contrls change with the mainframe
Replies: 8
Views: 1016

maybe I should use wxBoxSizer.
I will have a try at once .

if(fail)
{
I will post my code in the topic;
}
:)
by xin.songtao
Tue Jul 17, 2007 7:29 am
Forum: C++ Development
Topic: Is there a way to make the contrls change with the mainframe
Replies: 8
Views: 1016

Is there a way to make the contrls change with the mainframe

Hi,all! (or I should say: Hi! tan)
I am very happy to achieve myframe ,
but wen I max the frame ,the toolbar ,the ListCtrl,the StatusBar are not changed with the mainframe!
it looks grotty.


I have no idea now.Could you help me?
by xin.songtao
Tue Jul 17, 2007 2:26 am
Forum: C++ Development
Topic: wxToolBar : how to make the character under the bitmap?
Replies: 8
Views: 1448

thx !
I got it !
In my code i found a repeated code:

toolbar = CreateToolBar(wxTB_HORIZONTAL);

before i Realize(); the toolbar! :lol:

thx tan !
thx DimX!
thx HeReSY!
by xin.songtao
Mon Jul 16, 2007 9:47 am
Forum: C++ Development
Topic: wxToolBar : how to make the character under the bitmap?
Replies: 8
Views: 1448

Is there any other help? :(
by xin.songtao
Mon Jul 16, 2007 7:33 am
Forum: C++ Development
Topic: wxToolBar : how to make the character under the bitmap?
Replies: 8
Views: 1448

thx tan ,
but I have tried the two ways before i post the topic.
the function "AddSeparator()" seems has no effective,the separator is not shown ,and the text is a short help when the mouse move uppon the bitmapbutton, I want to make it rue like the picture,
thanks all the same!
by xin.songtao
Mon Jul 16, 2007 4:05 am
Forum: C++ Development
Topic: wxToolBar : how to make the character under the bitmap?
Replies: 8
Views: 1448

wxToolBar : how to make the character under the bitmap?

hi all:
My first qustion is the topic,
what's more, i have another question ,how to make the "Separator" true in my codes? the "line" in the picture.
by xin.songtao
Fri Jul 13, 2007 10:56 am
Forum: C++ Development
Topic: How to change the size of toolbar?
Replies: 6
Views: 1088

wxToolBar *m_toolbar = new wxToolBar(this,-1,wxPoint(0,60),wxSize(805,200),wxTB_HORIZONTAL); wxPathList pathList; pathList.Add(_T("./bitmap")); wxString path_new = pathList.FindValidPath(_T("new.bmp")); wxBitmap bitmap(path_new,wxBITMAP_TYPE_BMP); wxBitmapButton *bitmapbutton = new wxBitmapButton(m_...
by xin.songtao
Fri Jul 13, 2007 10:31 am
Forum: C++ Development
Topic: How to change the size of toolbar?
Replies: 6
Views: 1088

How to change the size of toolbar?

I want to add some bitmapbuttons to the toolbar,
but the hight of toolbar is not fit for the bitmap.
when I add them to the toolbar ,only half of the bitmap could be seen,
is there a way to solve it?
by xin.songtao
Wed Jun 06, 2007 8:37 am
Forum: C++ Development
Topic: In which way i can create a file with the property of SHARE?
Replies: 2
Views: 509

Thanks all the same ,I have had a good idea,in the windows platform,use the function open() to open a file ,then create it; like this int fd = _open(strFileName.mb_str(), _O_CREAT | _O_RDWR |_O_BINARY, _S_IREAD | _S_IWRITE) ; hFile = new wxFile(fd);
by xin.songtao
Wed Jun 06, 2007 5:17 am
Forum: C++ Development
Topic: In which way i can create a file with the property of SHARE?
Replies: 2
Views: 509

In which way i can create a file with the property of SHARE?

I want to create a file, which can be read at the same time by two or more functions,what should i do?
in the wxWidgets, the property of file only has three type, read ,write ,read_write. it has not SHARE type.
by xin.songtao
Thu May 17, 2007 6:59 am
Forum: C++ Development
Topic: I have some problem,who can help me ?
Replies: 5
Views: 709

DEAR tan ,
I don't know what I should to say for you ,thank you very much !
I am a green-hand in wxWidgets,add I am not familiar with C++ yet.
Thanks for your help !