Search found 19133 matches

by doublemax
Thu Dec 08, 2011 2:38 pm
Forum: C++ Development
Topic: problems returning wxString
Replies: 7
Views: 2159

Re: problems returning wxString

This sample code is not causing me a problem.
In that case it's not very helpful.

Maybe you're making a mistake like the one in this thread:
http://forums.wxwidgets.org/viewtopic.p ... 74#p137374
by doublemax
Thu Dec 08, 2011 12:28 pm
Forum: C++ Development
Topic: Storing Image on disk v/s drawing on the fly.
Replies: 4
Views: 1487

Re: Storing Image on disk v/s drawing on the fly.

I don't think it makes sense to store and load the image from HD on each redraw. But storing the bitmap in memory and only update it when the content actually changes definitely makes sense.
by doublemax
Thu Dec 08, 2011 10:20 am
Forum: C++ Development
Topic: Bugs with wxSpinCtrlDouble & wxRadioButton
Replies: 2
Views: 1669

Re: Bugs with wxSpinCtrlDouble & wxRadioButton

What platform, wxWidgets version?

Does it only happen with when the controls are inside a MDIChild?

It might help if you could build a minimal compilable sample that demonstrates the problem.
by doublemax
Thu Dec 08, 2011 10:07 am
Forum: wxDev-C++
Topic: Runs on wxdevc++, but not on OS!
Replies: 6
Views: 4654

Re: Runs on wxdevc++, but not on OS!

const char* print_all_cycles(void) { int i,j; string s=""; [...] return s.c_str(); } You can't return strings like this. You're returning the pointer to data in a local variable. At the end of this function, the pointer will be unvalid. At first sight this may work, depending an how and w...
by doublemax
Wed Dec 07, 2011 11:52 pm
Forum: wxDev-C++
Topic: Runs on wxdevc++, but not on OS!
Replies: 6
Views: 4654

Re: Runs on wxdevc++, but not on OS!

What exactly does "doesn't work" mean? Does your program not start at all or does it just behave differently?

In the latter case: What exactly?
by doublemax
Wed Dec 07, 2011 10:26 pm
Forum: Platform Related Issues
Topic: Lion, Xcode 4.2, 2.9.2
Replies: 23
Views: 7155

Re: Lion, Xcode 4.2, 2.9.2

I'm not really an OSX expert, i just remembered that when i wanted to build on OSX once that OpenGL was not enabled ( it said "Opengl support: no" )

But as i didn't need it, i didn't care too much.

You can try adding "--with-opengl" to configure, didn't work for me though.
by doublemax
Wed Dec 07, 2011 8:54 pm
Forum: Platform Related Issues
Topic: Lion, Xcode 4.2, 2.9.2
Replies: 23
Views: 7155

Re: Lion, Xcode 4.2, 2.9.2

Check the output of your configure call again if OpenGL was successfully detected. (It's somewhere in the summary at the end). If not, wxGLCanvas will not be available.
by doublemax
Wed Dec 07, 2011 6:06 pm
Forum: General Development
Topic: simple GUI needs, will wxWidgets work?
Replies: 3
Views: 1518

Re: simple GUI needs, will wxWidgets work?

Java is definitely not "light-weight" ;) Unless you mean Java-Script. Depending on how much code you need "behind" the controls, running the whole "application" as a webpage in a browser could be an option. But without knowing what your application does it's hard to gue...
by doublemax
Wed Dec 07, 2011 6:02 pm
Forum: C++ Development
Topic: wxlistctrl
Replies: 1
Views: 808

Re: wxlistctrl

whats the equivalent of wxgrid begin batch and endbatch for wxListCtrl?
There is nothing, except the general Freeze() / Thaw()
http://docs.wxwidgets.org/stable/wx_wxw ... ndowfreeze
by doublemax
Wed Dec 07, 2011 12:28 pm
Forum: wxDev-C++
Topic: Background of wxNotebook
Replies: 20
Views: 12484

Re: Background of wxNotebook

You could also try wxAuiNotebook, which - as a non-native control - might be more willing to accept non-standard colors ;)

http://docs.wxwidgets.org/stable/wx_wxa ... uinotebook
by doublemax
Wed Dec 07, 2011 12:24 pm
Forum: General Development
Topic: simple GUI needs, will wxWidgets work?
Replies: 3
Views: 1518

Re: simple GUI needs, will wxWidgets work?

What you're describing is definitely possible with wxWidgets. The question is: What else do you need/will you do in your program? wxWidgets' strength is that is uses native controls. If it's just rectangular shapes that act like buttons, it's ok, but the more custom-looking controls you need, the ha...
by doublemax
Wed Dec 07, 2011 12:08 pm
Forum: Compiler / Linking / IDE Related
Topic: DMC (Digital Mars C Compiler) and wxWidgets - no make.dmc?
Replies: 2
Views: 1579

Re: DMC (Digital Mars C Compiler) and wxWidgets - no make.dm

In wx 2.8.12 these files were still there. But i haven't read anything about dropping support for DMC, so i guess they were just forgotten in 2.9.3. For a definite answer you may have to ask on the wx-users mailing list, where you can reach the wxWidgets core developers: http://www.wxwidgets.org/sup...
by doublemax
Wed Dec 07, 2011 11:41 am
Forum: C++ Development
Topic: Using yield in 2.9.2
Replies: 4
Views: 1347

Re: Using yield in 2.9.2

It doesn work as expected in 2.9.2 while the same works good in 2.8.12 well, what do you expect and what happens instead? Besides, wxThread::Yield() has nothing to do with event handling (like wxApp::Yield()). It just gives the rest of the timeslice back to the system for other processes. wxWidgets...
by doublemax
Wed Dec 07, 2011 10:38 am
Forum: C++ Development
Topic: Using yield in 2.9.2
Replies: 4
Views: 1347

Re: Using yield in 2.9.2

by doublemax
Wed Dec 07, 2011 1:08 am
Forum: C++ Development
Topic: Field text and borders going missing...
Replies: 5
Views: 1153

Re: Field text and borders going missing...

If you want one control be "on top" of another control, it must be a child of that control. If two siblings (controls that have the same parent) overlap, the redraw order is more or less undefined, that's why you get the redraw problems. In general, wxWidgets is not too well suited for a d...