Search found 20 matches

by greekfellows
Sun Sep 07, 2014 9:57 am
Forum: C++ Development
Topic: wxWidgets + OpenCV: wxBitmap does not draw wxImage correctly
Replies: 6
Views: 2331

wxWidgets + OpenCV: wxBitmap does not draw wxImage correctly

I'm trying to make a wxImage out of a cv::Mat raw data, and have a wxBitmap draw it out on a wxPanel-derived class (this bmImage class). Here's the code for loading the cv::Mat data into the wxImage. cv::Mat asCvMat = cv::imread("something.png", 1); cv::imshow("preview", asCvMat); cv::Mat cvtResult;...
by greekfellows
Fri May 30, 2014 12:41 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets and Boost: Compiling standalone executable
Replies: 2
Views: 1545

Re: wxWidgets and Boost: Compiling standalone executable

@doublemax Thank you! I'll try and repost if I have further problems.
by greekfellows
Fri May 30, 2014 7:37 am
Forum: Compiler / Linking / IDE Related
Topic: wxWidgets and Boost: Compiling standalone executable
Replies: 2
Views: 1545

wxWidgets and Boost: Compiling standalone executable

Hello! I'm writing a program that uses wxWidgets and Boost, with Visual Studio Express 2013 for Windows Desktop. What should I do to compile a standalone executable (.exe)? I want to be able to create an .exe or a folder containing everything I need, and the program can run in any computer if I copy...
by greekfellows
Fri May 30, 2014 7:33 am
Forum: C++ Development
Topic: wxEVT_LEFT_UP: Strange mouse movements
Replies: 3
Views: 1254

Re: wxEVT_LEFT_UP: Strange mouse movements

@Manolo Yes, I am sorry that the code isn't clear... I blindly followed the examples on Wiki and after I've done so many research on wxWidgets, I know that using wxPaintDC and wxClientDC isn't a good practice... And as you have pointed out, I wasn't clear about the consistency, and I managed to fix ...
by greekfellows
Fri May 23, 2014 5:08 pm
Forum: C++ Development
Topic: wxEVT_LEFT_UP: Strange mouse movements
Replies: 3
Views: 1254

wxEVT_LEFT_UP: Strange mouse movements

Hello everyone! :) I'm trying to write a draggable rectangle with text written over it. The rectangle gets dragged fine when I press the mouse down and hold it and move it around. However, as soon as I release the mouse, the rectangle snaps back to its original position... but I want it to stay ther...