Search found 2008 matches

by PB
Wed Feb 16, 2011 8:51 pm
Forum: C++ Development
Topic: wxanimation Where is it?
Replies: 22
Views: 2847

Question why is it important to use m_. It's just a matter of coding style - it usually goes like this: no prefix for local variables, "m_" for member variables, "s_" for static member variables and if you must use global variables, those are prefixed by "g_". But in the end it's just a matter of p...
by PB
Wed Feb 16, 2011 8:21 pm
Forum: C++ Development
Topic: wxanimation Where is it?
Replies: 22
Views: 2847

I don't know what your app does so it's hard to give advice. Anyway, assuming you just want to run an animation for three seconds once a user hits the search button (simplified code): 1. create wxAnimationCtrl and load the animation file in the frame constructor Animation_CTRLFrame::Animation_CTRLFr...
by PB
Wed Feb 16, 2011 6:55 pm
Forum: C++ Development
Topic: wxanimation Where is it?
Replies: 22
Views: 2847

As wxAnimationCtrl doesn't provide anything like PlayFor(long ms), it seems that the easiest way would be:
1. Start playing the animation, create a one shot 3-secs wxTimer.
2. Catch the timer event and stop playing the animation.
by PB
Tue Feb 15, 2011 10:23 am
Forum: C++ Development
Topic: wxanimation Where is it?
Replies: 22
Views: 2847

wxAnimationCtrl is just a control like any other, e.g. button, textedit, checkbox etc., so you don't have to embed it in wxHTMLCtrl. If you're using wxWidgets 2.8, you should wrap all string literals either in _T() or _() calls. See here for more: http://docs.wxwidgets.org/stable/wx_stringfunctions....
by PB
Tue Feb 15, 2011 6:18 am
Forum: C++ Development
Topic: wxanimation Where is it?
Replies: 22
Views: 2847

You probably want to use wxAnimationCtrl:
http://docs.wxwidgets.org/stable/wx_wxa ... mationctrl

You can also check out the animate sample included in wxWidgets distribution.
by PB
Mon Feb 14, 2011 7:23 am
Forum: C++ Development
Topic: Problem with wxFileSystemWatcher: Does not recognize modif.
Replies: 14
Views: 2212

The list of issues I have found is here:
http://trac.wxwidgets.org/ticket/12847#comment:13
by PB
Thu Feb 10, 2011 9:48 pm
Forum: Compiler / Linking / IDE Related
Topic: Does wx code auto-include .libs?
Replies: 27
Views: 5090

Disclaimer: I've never used DLL version of wxWidgets before, I have never created a DLL using wxWidgets before and I'm normally using wxWidgets 2.9-trunk. Anyway, I looked into the issue of building a DLL which uses wxWidgets. I haven't created a new VS project, I simply adapted a VC++ 2008 Express...
by PB
Thu Feb 10, 2011 6:29 pm
Forum: Compiler / Linking / IDE Related
Topic: Does wx code auto-include .libs?
Replies: 27
Views: 5090

1. How did you create your VC++ project - from scratch, copied from your previous project ...? 2. How did you build wxWidgets library? 3. Where did you add wxWidgets directories (for include and lib) - in project settings as recommended or in VC++ options? 4. If you copy and paste the source code fr...
by PB
Thu Feb 10, 2011 5:03 pm
Forum: C++ Development
Topic: Tweaking wx builds, e.g wxUSE_THREADS, wxUSE_STL
Replies: 10
Views: 1092

I wasn't sure if I should change those files - they're documented but I don't recall reading about them much when I first installed wx. Is there a wiki page discussing them? To anyone who uses MSVC, I am a bit confused by how we end up with per-configuration .h file in our library folders. If I wan...
by PB
Tue Feb 08, 2011 10:06 am
Forum: C++ Development
Topic: How I Will get all Control from wxDialog
Replies: 9
Views: 1294

Did you mean something like this? if (dynamic_cast<wxTextCtrl*>(current)) { if (current->GetId() == txt_Name_ID) { txt_Name = dynamic_cast<wxTextCtrl*>(current); // txt_Name->SetValue(_T("Test: I am a txt_Name control")); } } But if you know which ID txt_Name control has, there's no need to enum chi...
by PB
Mon Feb 07, 2011 9:33 am
Forum: C++ Development
Topic: How I Will get all Control from wxDialog
Replies: 9
Views: 1294

Generic C++ way doesn't work? Something like this: if (dynamic_cast<wxStaticText*>(current)) { // window is a wxStaticText control } else if (dynamic_cast<wxTextCtrl*>(current)) { // window is a wxTextCtrl control } else if (dynamic_cast<wxButton*>(current)) { // window is a wxButton control } else ...
by PB
Fri Feb 04, 2011 7:54 pm
Forum: Compiler / Linking / IDE Related
Topic: ITERATOR_DEBUG_LEVEL
Replies: 2
Views: 1960

Have you checked if you don't have mismatched #defines in files you're trying to link, like described e.g. here or here?
by PB
Thu Feb 03, 2011 10:11 pm
Forum: C++ Development
Topic: wxlistbox Arrays with CASE and SWITCH not working
Replies: 22
Views: 5593

If I understand your purpose, you want to: 1. Collect some info from a user, who can select tasks he wants to perform. I think wxCheckListBox is good for this. 2. Once he sets his choices and confirms them you want to display a window showing which tasks have been already finished and which ones sti...
by PB
Thu Feb 03, 2011 7:09 pm
Forum: C++ Development
Topic: wxlistbox Arrays with CASE and SWITCH not working
Replies: 22
Views: 5593

In the EVT_CHECKLISTBOX handler you do something like this to learn if the item that has just been toggled is checked in or not: if (!m_pListBox->IsChecked(event.GetInt()) return; ... item whose index = event.GetInt() was checked, do something with this information But I have a feeling that this is ...
by PB
Thu Feb 03, 2011 1:55 pm
Forum: C++ Development
Topic: wxlistbox Arrays with CASE and SWITCH not working
Replies: 22
Views: 5593

OK I did this and it worked with a button. Is this for a checkListBox because I had to remove the WXCheck parts to make it work with my plain ListBox? Also how come when I set it to auto sort it doesn't seem to obey. For example if I click the first appended and then click the button it launches th...