Search found 31 matches

by Nico
Mon Mar 18, 2013 8:06 pm
Forum: C++ Development
Topic: Need some help with wxExecute
Replies: 6
Views: 2134

Re: Need some help with wxExecute

Hello David, Thank you very much for your quick reply. _() marks a string as being for translation. You really don't want that here. Use wxT() instead. A good point, I will change that immediately. Obviously I don't want to be restricted to the same directory and this specific filename I'm not sure ...
by Nico
Mon Mar 18, 2013 6:38 pm
Forum: C++ Development
Topic: Need some help with wxExecute
Replies: 6
Views: 2134

Need some help with wxExecute

Hello, Using wxWidgets-2.8.11 on windows XP (no need for portability in this case) I am trying to get my program to start a vb-script file that requires two arguments when it is done. I have tried quite a couple of possible ways to do create a string with the command name and the arguments for wxExe...
by Nico
Mon Jul 11, 2011 6:34 pm
Forum: C++ Development
Topic: Getting a part of an image
Replies: 2
Views: 717

Re: Getting a part of an image

Thank you very much, that seems to be it.

Kind regards, Nico
by Nico
Mon Jul 11, 2011 6:33 pm
Forum: C++ Development
Topic: WxDC and painting
Replies: 20
Views: 3199

Re: WxDC and painting

If you use code::blocks as IDE you have a "manager" window (by default I believe it is on the left-hand side next to the code. In the "manager" window there are three tabs, "Projects", "Symbols" and "Resources", select the Resources tab. Here you find a file tree that you can unfold to the point whe...
by Nico
Mon Jul 11, 2011 6:09 pm
Forum: C++ Development
Topic: Getting a part of an image
Replies: 2
Views: 717

Getting a part of an image

Hello, I am using wxBitmap to display an image in my gui and this works well. Now I would like to display only a part of an image, is there a way to load a specified part of an image into a wxBitmap? Something that would allow this: from picture MYCLASSMATES.PNG, select rectangleShapedImage at 124,3...
by Nico
Mon Jul 11, 2011 5:57 pm
Forum: C++ Development
Topic: WxDC and painting
Replies: 20
Views: 3199

Re: WxDC and painting

If you are into this for the result, check here: http://wxcode.sourceforge.net/components/wxchart/ and http://wxcode.sourceforge.net/components/freechart/ If you are doing this to learn and assuming you use wxSmith: 1. Go to "yourFrame.wxs" or "yourPanel.wxs". 2. Select the panel or the frame you ar...
by Nico
Tue Feb 01, 2011 8:11 pm
Forum: C++ Development
Topic: How to extract strings from gui for translation
Replies: 8
Views: 1408

Hoeray, somehow I got it to work. Thank you very much for all of your help.

Kind regards, Nico
by Nico
Tue Feb 01, 2011 1:37 pm
Forum: C++ Development
Topic: How to extract strings from gui for translation
Replies: 8
Views: 1408

I am starting to feel a bit stupid here, but I still can't get it to work and I believe this is because I just don't understand how it is supposed to go down. Some questions I have at this moment: - if I set a language for translation in my mainApp, does this automatically apply for all other classe...
by Nico
Sat Jan 29, 2011 5:39 pm
Forum: C++ Development
Topic: How to extract strings from gui for translation
Replies: 8
Views: 1408

In the program, you need then to init the lang: void MyApp::SelectLanguage(int lang) { delete m_locale; m_locale = new wxLocale(lang); // m_locale->AddCatalogLookupPathPrefix(wxGetCwd()); // m_locale->AddCatalog(wxT("dryer")); } long MyApp::Set_Lang(int lng, bool ask) { if (ask) { const wxString la...
by Nico
Sat Jan 29, 2011 4:13 pm
Forum: C++ Development
Topic: How to extract strings from gui for translation
Replies: 8
Views: 1408

Thanks guys, you were write it was the --keyword=_ part that was missing. It is hard to believe that is what stopped me for three days now.

Thanks a bunch, Nico
by Nico
Sat Jan 29, 2011 2:22 pm
Forum: C++ Development
Topic: How to extract strings from gui for translation
Replies: 8
Views: 1408

How to extract strings from gui for translation

Hello, I am trying to make a program with text translated to the users language. To get going I figured I should start with a simple hello world program and I got that working in the console, using gettext. I don't want to make a console program, so I would like to port this idea to a wxWidgets gui....
by Nico
Tue Nov 30, 2010 8:53 pm
Forum: C++ Development
Topic: How to test a program for winCE
Replies: 2
Views: 484

Thank you very much, that looks like some reading that might indeed get the job done.

Kind regards, Nico
by Nico
Tue Nov 30, 2010 8:10 pm
Forum: C++ Development
Topic: How to test a program for winCE
Replies: 2
Views: 484

How to test a program for winCE

Hello,

I'm trying to write a program and eventually I would like to port it to winCE. However I don't have a system that is running winCE to test it on. Is there a way to test it on my winXP-system (a free virtual machine maybe)?

Thanks in advance for you advise.

Kind regards, Nico
by Nico
Sun Nov 07, 2010 7:01 pm
Forum: Component Writing
Topic: Total newbie needs some guidance to get started
Replies: 4
Views: 2050

Thank you very much for your help and patience. I now understand it a bit better.

kind regards, Nico Nijman
by Nico
Sun Nov 07, 2010 6:39 pm
Forum: Component Writing
Topic: Total newbie needs some guidance to get started
Replies: 4
Views: 2050

Thank you very much, that helps a lot. Coming from Java I have a hard time with the format. Should there always be a "class::" in front of a function or is this in specific situations?

Also Is there an equaly stupid reason for the "GetClientSize()" to cause an error?

Kind regards, Nico