Search found 169 matches

by fantaz
Thu Mar 13, 2008 7:59 am
Forum: Compiler / Linking / IDE Related
Topic: src\wxWindows.dsw
Replies: 1
Views: 552

If I understood correctly, you cannot find the project file to build. The dsw files are not in src folder, they reside in build\msw folder and the file is called wx.dsw
best regards,
fantaz
by fantaz
Thu Mar 06, 2008 8:04 am
Forum: C++ Development
Topic: syntax errors in kdevelop and compile error - wx 2.8.7
Replies: 5
Views: 1305

First off, you shouldn't put ";" at the end of the mentioned macros. I think that the problem lies somewhere else. The questions to be asked first: 1. Does DialogBlocks successfully builds and executes testing app? 2. Does KDevelop successfully builds and executes test project? 3. How did ...
by fantaz
Wed Mar 05, 2008 9:24 am
Forum: C++ Development
Topic: syntax errors in kdevelop and compile error - wx 2.8.7
Replies: 5
Views: 1305

If you have problems with kdevelop, please take a look at this.
Also there are wiki pages here and here.
Finally, on this forum are numerous articles regarding kdevelop.
And yes, please post some code which troubles you with info on the errors
best regards,
fantaz
by fantaz
Mon Mar 03, 2008 10:42 am
Forum: C++ Development
Topic: how to convert from int to wxString
Replies: 6
Views: 1289

How new are the << operators for int, float, and double? I don't remember ever seeing them before and I'm pretty sure I've checked. Uf, I don't know. I have been using the << operator for a while now(I mean more than a year). I tried to find when it was first mentioned, but I failed. I didn't find ...
by fantaz
Mon Mar 03, 2008 9:29 am
Forum: C++ Development
Topic: how to convert from int to wxString
Replies: 6
Views: 1289

Antoher neat way(besides mentioned above) is as follows:

Code: Select all

wxString str; int i=4;
str << i;
Take a look at this page for more information.
best regards,
fantaz
by fantaz
Fri Feb 29, 2008 12:03 pm
Forum: Compiler / Linking / IDE Related
Topic: LINK : fatal error LNK1104: cannot open file 'wxmsw28d_core.
Replies: 2
Views: 716

Also, if above didn't help you should try to include this dir:
C:\wxWidgets-2.8.7\lib\vc_lib in linker
Finally, to really understand and know what you are doing, take a look at this wiki page in Creating a New Project by Hand subsection.
best regards,
fantaz
by fantaz
Thu Feb 21, 2008 10:23 am
Forum: Compiler / Linking / IDE Related
Topic: Building wxGTK-2.8.7 on Ubuntu 7.10
Replies: 2
Views: 1077

There are two really good tutorials:
First is a screencast, which you can find here
and of course, there is a wiki
Both guide you step by step.
best regards,
fantaz
by fantaz
Tue Feb 19, 2008 3:11 pm
Forum: wxCode
Topic: wxPlotCtrl, wxPlotData and adding a key
Replies: 3
Views: 1539

Yeah, I had made a typo in last post This code works for me: wxPlotData p_data; p_data.Create(no_pts); for(i=0;i<no_pts;i++) {// fill in some data} p_data.SetOption(wxPLOTCURVE_OPTION_FILENAME,wxT("Test name"),true); plotctrl->AddCurve(p_data,true,true); wxPLOTCURVE_OPTION_FILENAME does ex...
by fantaz
Tue Feb 19, 2008 8:42 am
Forum: wxCode
Topic: Mouse events in wxPlotCtrl
Replies: 1
Views: 789

It won't help you with your decision, but I think that you could experiment for a while with both functions and see what happens.
best regards,
fantaz
by fantaz
Tue Feb 19, 2008 8:23 am
Forum: wxCode
Topic: wxPlotCtrl, wxPlotData and adding a key
Replies: 3
Views: 1539

Yes you can.
IIRC, I think you have to add this:

Code: Select all

plotData->SetOption("WXPLOTCURVE_OPTION_FILENAME", WXT("Curve_name"), true);
Just in case, look at the sample...
best regards,
fantaz
by fantaz
Thu Feb 14, 2008 10:42 am
Forum: wxCode
Topic: wxPlotCtrl and changing the colour of the plotted lines
Replies: 4
Views: 1626

This is the right way. Take a look at the wxPlotCtrl::DeleteCurve( int n, bool send_event ) in plotctrl.cpp There you'll find wxCHECK_MSG((n>=-1)&&(n<int(m_curves.GetCount())), false, wxT("Invalid curve index")); so the right way would be: plot->DeleteCurve(curve_index,true) plot->...
by fantaz
Wed Feb 13, 2008 10:17 pm
Forum: wxCode
Topic: wxPlotCtrl and changing the colour of the plotted lines
Replies: 4
Views: 1626

Take a look at this , but my impression is that you had forgot to add m_plotctr->Redraw(wxPLOTCTRL_READRAW_PLOT) after you've added the lines. Also, take a look at the wxPlotPen_Type enum. There is a difference when the line is selected and when is not(yes, blue is selected line). best regards, fantaz
by fantaz
Wed Feb 13, 2008 10:05 pm
Forum: Compiler / Linking / IDE Related
Topic: Setting environment variables in VC2005
Replies: 4
Views: 1313

Did you setup your app's Runtime library flags exactly as wxwidgets library? As I understood you've compiled the wxwidgets with Multithreaded(Debug) flag on, while your app could be set with Multithreaded(Debug) DLL flag on
best regards,
fantaz
by fantaz
Wed Feb 13, 2008 7:48 am
Forum: Compiler / Linking / IDE Related
Topic: Ubuntu build issues
Replies: 2
Views: 733

it seems that you didn't do all necessary configuring, otherwise it would build just fine. I mean I have built wxwidgets, libs and apps on ubuntu and didn't have these issues.
Please be more specific.
best regards,
fantaz
by fantaz
Thu Jan 31, 2008 12:27 pm
Forum: C++ Development
Topic: Swapping items in a wxList
Replies: 4
Views: 1253

You can use wxList::Insert
best regards,
fantaz