Search found 34 matches

by pixsta
Sun Feb 17, 2008 6:52 am
Forum: C++ Development
Topic: Draw on "hidden" wxDC
Replies: 3
Views: 828

Thanks! The combination of wxMemoryDC and the removal of another bug :oops: fixed it.
by pixsta
Sat Feb 16, 2008 10:17 pm
Forum: C++ Development
Topic: Draw on "hidden" wxDC
Replies: 3
Views: 828

Draw on "hidden" wxDC

Hello, I want to draw and work on a hidden wxDC. With "hidden" I mean that the wxDC is not visible to the user but created in the background: wxDC dc; wxImage someImage = ...; dc.DrawBitmap(someImage , x, y ); dc.SetBrush(*wxBLUE_BRUSH); dc.FloodFill(0, 0, *wxRED, wxFLOOD_BORDER); ... // do further ...
by pixsta
Fri Jan 12, 2007 10:09 am
Forum: C++ Development
Topic: wxSpinCtrl for decimal numbers
Replies: 3
Views: 1352

wxSpinCtrl for decimal numbers

Hello,

Does wxWidgets include a control similar to "wxSpinCtrl" that supports decimal (float) numbers?

Thank you,
by pixsta
Sun Dec 17, 2006 11:12 am
Forum: Compiler / Linking / IDE Related
Topic: vs.net 2005 and wxGLCanvas
Replies: 3
Views: 771

s***. I did indeed forget to compile with wxUSE_GLCANVAS.
by pixsta
Sun Dec 17, 2006 10:57 am
Forum: Compiler / Linking / IDE Related
Topic: vs.net 2005 and wxGLCanvas
Replies: 3
Views: 771

yes. Btw: I am using wxWidgets 2.8.0. Further the error occurs before linking, so it should not be a problem with the libraries.
by pixsta
Sun Dec 17, 2006 10:53 am
Forum: Compiler / Linking / IDE Related
Topic: vs.net 2005 and wxGLCanvas
Replies: 3
Views: 771

vs.net 2005 and wxGLCanvas

Hello, I have a strange problem with visual studio 2005. I have a wxWidgets GUI which works fine. When I include <wx/glcanvas.h> and try to make a variable like "wxGLCanvas * pCanvas;" I get the following compiling error: error C2065: 'wxGLCanvas' : undeclared identifier error C2065: 'pCanvas' : und...
by pixsta
Fri Dec 15, 2006 10:19 pm
Forum: C++ Development
Topic: Fast method for showing OpenCV images
Replies: 1
Views: 1281

Fast method for showing OpenCV images

Hello, Currently I am displaying camera-live-data from an OpenCV IplImage on a wxPanel but it is extremely slow. Here is the basic code: while (m_run) { unsigned char *rawData; CvSize roiSize; int step = 0; IplImage *pDstImg = cvCloneImage(cvQueryFrame(avi)); cvGetRawData( pDstImg, &rawData, &step, ...
by pixsta
Thu Dec 14, 2006 8:28 pm
Forum: wxDev-C++
Topic: wxAUI and Gui Designer
Replies: 3
Views: 924

Thanks. I already took a deeper look into wxAUI and it should work quite good (at least I hope it ;)).
by pixsta
Wed Dec 13, 2006 2:05 pm
Forum: wxDev-C++
Topic: wxAUI and Gui Designer
Replies: 3
Views: 924

wxAUI and Gui Designer

Hello,

I'm considering to use wxAUI for docking/floating windows. Are there any problems using wxAUI together with the Dev++ form designer?

Regards,
by pixsta
Fri Mar 24, 2006 6:58 pm
Forum: C++ Development
Topic: wxFrame icon
Replies: 8
Views: 2496

I also tried gif and ico files. both do not work.
by pixsta
Fri Mar 24, 2006 6:32 pm
Forum: C++ Development
Topic: wxFrame icon
Replies: 8
Views: 2496

no, I did not call it. But also when I call it, it does not work.
by pixsta
Fri Mar 24, 2006 6:17 pm
Forum: C++ Development
Topic: wxFrame icon
Replies: 8
Views: 2496

wxFrame icon

Hello!

I want to add a icon to my wxframe:

Code: Select all

wxIcon wxicon; 
wxicon.LoadFile("icon.png",wxBITMAP_TYPE_PNG); // returns false everytime
myframe->SetIcon(wxicon);
The problem is, that "LoadFile" returns false. I also tried it with a gif. The size of the png is 32x32x24.

Thank you,
by pixsta
Mon Mar 13, 2006 9:12 am
Forum: C++ Development
Topic: wxChart flickering problem (source included)
Replies: 4
Views: 1413

stephan wrote:painting is usually done in response to the Paint event, maybe you should
try EVT_PAINT instread of EVT_UPDATE_UI ?


- stephan
for some reason, the paint event is fired without interuption which results into 100% cpu usage. but the solution with updateUI and the bufferedDC works fine.
by pixsta
Sun Mar 12, 2006 9:03 pm
Forum: C++ Development
Topic: wxChart flickering problem (source included)
Replies: 4
Views: 1413

I got both things working (I'll post the code, when it's ready).
But another problem occured:
I use "EVT_UPDATE_UI(-1, ShapeCanvas::OnPaint)" to update the chart. But this event is triggered very often.
Is there a better way?

thanks,
by pixsta
Sun Mar 12, 2006 5:28 pm
Forum: C++ Development
Topic: wxChart flickering problem (source included)
Replies: 4
Views: 1413

wxChart flickering problem (source included)

Hello! Finally I got the old wxChart sample to compile in vs.net 2003. You can download the source and binaries here: http://members.iweb4u.de/d/wxchart.zip Ok. and now my problems: - How can I get rid of this flickering/100% CPU usage? - How can I make the chart fit exactly into the window (also on...