Search found 1409 matches

by benedicte
Fri Jul 20, 2007 7:29 am
Forum: C++ Development
Topic: my last question !
Replies: 1
Views: 800

Please take a moment to look at the wxWidgets samples installed on your computer. You'll find all the answers to basic questions.
by benedicte
Thu Jul 19, 2007 4:07 pm
Forum: Platform Related Issues
Topic: code for displaying picture on MAC 0S 10
Replies: 13
Views: 3572

I wonder if you have called ::wxInitAllImageHandlers() in your app startup...
by benedicte
Thu Jul 19, 2007 12:38 pm
Forum: C++ Development
Topic: wxDialog
Replies: 13
Views: 2982

Globally, you have to do the following: //in the constructor dialog::dialog(...) :TNArticleKat(NULL), BNArticleKat(NULL) // <- here you set all the default values for the class members (overall the pointers) { ... } Initializing such members allow you to fill them not in the constructor, and you can...
by benedicte
Thu Jul 19, 2007 12:26 pm
Forum: Platform Related Issues
Topic: code for displaying picture on MAC 0S 10
Replies: 13
Views: 3572

Please note that "Resources/hourglass.ani" means your working directory is CrossPassword. I usually do not use any relative path in my apps because I don't know if the user will call it the proper way to have a coherent working directory. I always build an absolute path using the executabl...
by benedicte
Thu Jul 19, 2007 11:06 am
Forum: Platform Related Issues
Topic: code for displaying picture on MAC 0S 10
Replies: 13
Views: 3572

Yes In fact, but first Item In windows if you include a picture whch is not in resource you code : wxBitmap pic pic.LoadFile("picture.png,type) and windows load automatically the picture if it is in the same path of the source file (in the project) That's the way it works, it is globally desig...
by benedicte
Thu Jul 19, 2007 11:03 am
Forum: C++ Development
Topic: this is my code ,who can tell me where is wrong?
Replies: 7
Views: 2124

You have declared several pointers in the class declaration, and you re-declare them when instanciating the dialog... the class members are not initialized.
by benedicte
Thu Jul 19, 2007 11:00 am
Forum: C++ Development
Topic: wxDialog
Replies: 13
Views: 2982

Are you sure the Dialog pointer is not null when you call getText () ??
by benedicte
Thu Jul 19, 2007 9:55 am
Forum: Platform Related Issues
Topic: code for displaying picture on MAC 0S 10
Replies: 13
Views: 3572

wxWidgets being a cross-platform environment, I don't think there should be specific code to write on Mac...

Did you build the "image" sample on Windows/Mac and play with it to see if it works? You can also modify it to load your image(s).
by benedicte
Thu Jul 19, 2007 9:36 am
Forum: C++ Development
Topic: wxDialog
Replies: 13
Views: 2982

maybe you could post the calling code.

I guess you call the function after destroying the dialog.
by benedicte
Thu Jul 19, 2007 7:55 am
Forum: C++ Development
Topic: Tooltips on wxToolbook
Replies: 1
Views: 662

Maybe you can derive wxToolbook and handle the mouse cursor over the tabs (use HitTest to display the tooltip).
by benedicte
Wed Jul 18, 2007 1:09 pm
Forum: C++ Development
Topic: wxDialog
Replies: 13
Views: 2982

There are several samples creating dialogs with widgets. You should have a look at them. There's probably a containing sizer missing, or a Layout/Fit call to resize the dialog correctly. I also advise you not to use absolute positions but sizers. It allows you to resize the dialog regarding the user...
by benedicte
Tue Jul 17, 2007 4:47 pm
Forum: wxDev-C++
Topic: Menu Bar Question
Replies: 4
Views: 1113

You use the _ macro instead of _T for strings to translate, then you extract the strings to translate from the source code using xgettext, and you translate the strings (by filling the generated .po files). I guess there is a sample about apps localization. You may have a look at it, and look for xg...
by benedicte
Tue Jul 17, 2007 12:06 pm
Forum: C++ Development
Topic: Restoring window to its default size
Replies: 3
Views: 1136

MyFrame::MyFrame (...) { //my_frame_rect being a wxRect local member of your frame, you set it in OnSize and before destroying the window, you save it in your config if (app_was_maximized) Maximize (true); if (layout.frame_height!=0 && layout.frame_width!=0) my_frame_rect = wxRect(wxPoint(l...
by benedicte
Tue Jul 17, 2007 9:25 am
Forum: C++ Development
Topic: Is there a way to make the contrls change with the mainframe
Replies: 8
Views: 1607

Are you sure you need a wxlistctrl in the toolbar ? Or just a button with a popup menu ??

Did you look at the 'toolbar' sample? It shows how to create toolbars and add them to the frame.
by benedicte
Tue Jul 17, 2007 7:36 am
Forum: C++ Development
Topic: Is there a way to make the contrls change with the mainframe
Replies: 8
Views: 1607

Did you use sizers to make your widgets grow along with the container ?

Maybe you could post your code so that we can see what could be wrong?