Search found 138 matches

by Laurent Berger
Thu Nov 20, 2014 12:58 pm
Forum: Platform Related Issues
Topic: [wxGTK] assert "sb" failed in SetScrollbar()
Replies: 2
Views: 1243

[wxGTK] assert "sb" failed in SetScrollbar()

Hi, I've got a program which is OK for windows 7 and wxWidgets 3.0.1. The same program for linux mint and gtk send some warning about ScrollBar : ASSERT INFO: ./src/gtk/window.cpp(4710): assert "sb" failed in SetScrollbar(): this window is not scrollable Frame constructor is : FenetrePrinc...
by Laurent Berger
Wed Nov 19, 2014 1:53 pm
Forum: C++ Development
Topic: Enumerate all keys in wxConfig file
Replies: 1
Views: 844

Re: Enumerate all keys in wxConfig file

I have forget SetPath : #include "wx/wx.h" #include <wx/fileconf.h> #include <iostream> using namespace std; void ListerEntree(wxFileConfig *configApp,wxString &str,long &dummy) { bool bCont = configApp->GetFirstEntry(str, dummy); while ( bCont ) { cout<<str.c_str()<<"\t dummy...
by Laurent Berger
Tue Nov 18, 2014 2:10 pm
Forum: C++ Development
Topic: Enumerate all keys in wxConfig file
Replies: 1
Views: 844

Enumerate all keys in wxConfig file

Hi, I want to enumerate all keys in my wxConfig file. With code given in http://docs.wxwidgets.org/trunk/classwx_config_base.html. I cannot. I Have write my own code with a recursive function but result is an infinite loop. My config file looks like : langue=0 [niv0(0)] [niv0(0)/niv1(0)] cle0=1 cle1...
by Laurent Berger
Sun Nov 16, 2014 8:28 pm
Forum: C++ Development
Topic: wxConfig
Replies: 3
Views: 1352

wxConfig

Hi,

In chapter Enumeration of http://docs.wxwidgets.org/trunk/classwx ... _base.html, config->and GetConfig()-> are used.
What is the diffence ?

Thanks for yours answers
by Laurent Berger
Sun Oct 05, 2014 3:40 pm
Forum: Compiler / Linking / IDE Related
Topic: WXUSINGDLL 32 bits and 64bits
Replies: 0
Views: 1009

WXUSINGDLL 32 bits and 64bits

Hi, I use Cmake to build my application on two machines one in 32bits and the other in 64bits using visual studio and wxwidgets 3.0.1 withwindows 7. For build process in 32 bits I don't need WXUSINGDLL constant (with WXUSINGDLL I have got link errors 2001) and in 64 bits I need it. The two projects ...
by Laurent Berger
Tue Jun 03, 2014 7:07 am
Forum: C++ Development
Topic: EVT_GRID_CELL_CHANGING
Replies: 2
Views: 1588

Re: EVT_GRID_CELL_CHANGING

Thanks you for your answer.

I have tried handling EVT_GRID_EDITOR_HIDDEN, EVT_GRID_CELL_CHANGED events : events are processed in the wrong order.
So I have append a varaible in my class and now my program know the grid to modify.
by Laurent Berger
Mon Jun 02, 2014 8:01 pm
Forum: C++ Development
Topic: EVT_GRID_CELL_CHANGING
Replies: 2
Views: 1588

EVT_GRID_CELL_CHANGING

Hi, Something in my program is wrong and i don't know how to solve. I have got wxpanel A which contain an another wxPanel B and a wxGrid C. In panel B I have got a listbox with 10 items. each item give 10 grids which are displayed in wxGrid C. The problem is in wxGrid. i use EVT_GRID_CELL_CHANGING t...
by Laurent Berger
Tue Feb 11, 2014 12:30 pm
Forum: C++ Development
Topic: wxQueueEvent and thread
Replies: 10
Views: 9151

Re: wxQueueEvent and thread

Thanks ! you are right Everything is Ok now in main.cpp : #include "opencv2/opencv.hpp" #include <opencv/highgui.h> #include "IHMImage.h" #include "IHMVideoImage.h" #include <fstream> #include <map> using namespace cv; using namespace std; enum { // Identifiant des menu...
by Laurent Berger
Tue Feb 11, 2014 8:27 am
Forum: C++ Development
Topic: wxQueueEvent and thread
Replies: 10
Views: 9151

Re: wxQueueEvent and thread

the source code now is for IMHVideoimage.cpp #include "IHMVideoImage.h" wxBEGIN_EVENT_TABLE(IHMVideoImage, wxFrame) EVT_ERASE_BACKGROUND(IHMVideoImage::OnEraseBackground) EVT_PAINT(IHMVideoImage::OnPaint) EVT_CLOSE(IHMVideoImage::OnClose) EVT_MENU(wxID_ZOOM_IN, IHMVideoImage::OnZoom) EVT_M...
by Laurent Berger
Mon Feb 10, 2014 7:40 pm
Forum: C++ Development
Topic: wxQueueEvent and thread
Replies: 10
Views: 9151

Re: wxQueueEvent and thread

Change IHMOpenCV::OnThreadUpdateQueue to take wxThreadEvent instead of wxCommandEvent as parameter. already done in my code. My code is a copy of this example (http://docs.wxwidgets.org/trunk/classwx_thread.html) where you can find this two lines : EVT_COMMAND(wxID_ANY, wxEVT_COMMAND_MYTHREAD_UPDAT...
by Laurent Berger
Mon Feb 10, 2014 7:20 pm
Forum: C++ Development
Topic: wxQueueEvent and thread
Replies: 10
Views: 9151

Re: wxQueueEvent and thread

I forget a comma in
EVT_COMMAND(wxID_ANY,wxEVT_COMMAND_MYTHREAD_UPDATE, IHMOpenCV::OnThreadUpdateQueue)

but there is still an error :
error C2440: 'static_cast' : impossible de convertir de 'void (__thiscall IHMOpenCV::* )(wxThreadEvent &)' en 'wxCommandEventFunction'
by Laurent Berger
Mon Feb 10, 2014 7:11 pm
Forum: C++ Development
Topic: wxQueueEvent and thread
Replies: 10
Views: 9151

Re: wxQueueEvent and thread

Thanks you for yours answers. PS I have found this http://wiki.wxwidgets.org/Custom_Events but I cannot compile this example @doublemax I have still erros >f:\laurent\visual studio 2008\projects\wxopencv\wxopencv\main.cpp(46): warning C4003: nombre de paramètres réels insuffisants pour la macro 'EVT...
by Laurent Berger
Mon Feb 10, 2014 4:46 pm
Forum: C++ Development
Topic: wxQueueEvent and thread
Replies: 10
Views: 9151

wxQueueEvent and thread

Hi, My program display video using opencv and wxwidgets 3.0. A thread is calling cv::VideoCapture and send wxCommandEvent to main thread usind pendingEvent. In the help file there is an example with wxQueueEvent (http://docs.wxwidgets.org/trunk/classwx_thread.html). It is written that wxQueueEvent i...