Search found 442 matches

by jfouche
Tue Dec 07, 2010 4:13 pm
Forum: General Development
Topic: Property reference?
Replies: 4
Views: 961

Well, a solution for these is to create your own documentation, based on doxygen output (it allow you to add inherited methods). For the last stable (2.8.11, no doxyfile is provided, you'll have to create your own). For 2.9, you can modify the Doxyfile_html (in docs/doxygen).
by jfouche
Tue Dec 07, 2010 3:03 pm
Forum: General Development
Topic: Property reference?
Replies: 4
Views: 961

The doc is a good start, with it's class ref.

Do you need more ?
by jfouche
Tue Dec 07, 2010 2:58 pm
Forum: C++ Development
Topic: wxListCtrl: find index number of item
Replies: 6
Views: 925

wxListItem provide the SetText method. If you want to retrive the index from the item, you have the GetId method.
by jfouche
Tue Dec 07, 2010 8:19 am
Forum: Compiler / Linking / IDE Related
Topic: Build errors trying to build wxWidgets on VC++2008
Replies: 2
Views: 967

I use VC with wxWidgets, but I don't use the solution provided. I prefere using the makefile : rem Set VC env vars call vcvarsall.bat rem make the unicode DLLs nmake /F makefile.vc SHARED=1 UNICODE=1 BUILD=debug rem make the monolithic unicode DLL nmake /F makefile.vc SHARED=1 MONOLITHIC=1 UNICODE=1...
by jfouche
Mon Dec 06, 2010 1:42 pm
Forum: C++ Development
Topic: Problem using two different wxTimers
Replies: 23
Views: 1822

The -1 in EVT_TIMER(-1, IntervallTimerFrame::OnTimer)is wxID_ANY, which means all timers. So this event handler is called for both timers. This way, the second one can't be called if you doesn't Skip the event (means you allow other handler to manage this event). But your pb may be that you didn't n...
by jfouche
Mon Dec 06, 2010 8:56 am
Forum: C++ Development
Topic: Multiple wxPropertyCategory and property names
Replies: 2
Views: 669

You'd better name them differently. But they can have the same label : pg->Append( new wxPropertyCategory( _("1st category")) ); pg->Append( new wxStringProperty( _("Radius"), wxT("RADIUS_1") ); pg->Append( new wxPropertyCategory( _("2st category")) ); pg->Append( new wxStringProperty( _("Radius"), ...
by jfouche
Sat Dec 04, 2010 9:23 pm
Forum: C++ Development
Topic: Create textbox like this
Replies: 4
Views: 1243

Long time ago, I created this one. Let me know if you need some informations about how to use it.

Code: Select all

wxIPCtrl* ipCtrl = new wxIPCtrl(this, wxT("10.10.10.10"));
It's not the last version, but the last one is at work... I'll give an eye on it monday if you want.
by jfouche
Thu Nov 25, 2010 1:00 pm
Forum: C++ Development
Topic: FindFocus() returns NULL pointer wxWidgets 2.9.2 trunk
Replies: 8
Views: 1611

Oups, my post was not correctly sent :shock:

I was asking you why did you choose to manage the EVT_UPDATE_UI of the ID_FRAME_EDIT_CONTROL, if you don't really want to. You could manage it for the control you really need.
by jfouche
Thu Nov 25, 2010 8:21 am
Forum: C++ Development
Topic: FindFocus() returns NULL pointer wxWidgets 2.9.2 trunk
Replies: 8
Views: 1611

EVT_UPDATE_UI(ID_FRAME_EDIT_CONTROL, CMainFrame::OnUpdateFrameNumber)
by jfouche
Wed Nov 24, 2010 4:58 pm
Forum: C++ Development
Topic: wxBookCtrl sample is broken
Replies: 3
Views: 1004

You'd better post this on wxTrac(the wxWidgets bug tracker), or talk on the wx-users mailing list. Devs doesn't look at this forum.
by jfouche
Wed Nov 24, 2010 3:03 pm
Forum: C++ Development
Topic: FindFocus() returns NULL pointer wxWidgets 2.9.2 trunk
Replies: 8
Views: 1611

I suppose that you hope that the focus is the one which emit the event. So, you can use the event ID (which is the control ID that emit the event). void CMainFrame::OnUpdateFrameNumber(wxUpdateUIEvent& i_event) { ... if (i_event->GetId() != ID_FRAME_EDIT_CONTROL) { GetFrameNumber(); ...
by jfouche
Tue Nov 23, 2010 1:06 pm
Forum: C++ Development
Topic: wxPropGrid - Collapsing and Expanding
Replies: 2
Views: 625

You can expand a category by calling :

Code: Select all

bool wxPropertyGridInterface::Expand( wxPGPropArg id );
and collapse it with :

Code: Select all

bool wxPropertyGridInterface::Collapse( wxPGPropArg id )
by jfouche
Tue Nov 23, 2010 12:54 pm
Forum: C++ Development
Topic: can not use wxDataViewCtrl
Replies: 4
Views: 568

Which wxWidgets version do you use ?
by jfouche
Mon Nov 22, 2010 9:39 am
Forum: C++ Development
Topic: I want the wxTextCtrl only accept numbers,what i can do??
Replies: 10
Views: 1718

You should create you own derived wxTextCtrl class, and manage yourself the key typed by the user : Yes, you could also do like that, but wxTextValidator performs that for you and it is really simplier to use :wink: I prefer the way I did, because it's more user friendly. I don't like a control tha...
by jfouche
Mon Nov 22, 2010 9:30 am
Forum: C++ Development
Topic: I want the wxTextCtrl only accept numbers,what i can do??
Replies: 10
Views: 1718

You should create you own derived wxTextCtrl class, and manage yourself the key typed by the user : class NumberEdit : public wxTextCtrl { public: NumberEdit(wxWindow* parent, ...); virtual void OnChar(wxKeyEvent& event); }; NumberEdit(wxWindow* parent, ...) : wxTextCtrl(parent, wxID_ANY, ...) { Con...