Search found 2473 matches

by PB
Mon Jan 20, 2014 7:31 pm
Forum: Compiler / Linking / IDE Related
Topic: How do I clean up the source after building wxWidgets?
Replies: 2
Views: 1068

Re: How do I clean up the source after building wxWidgets?

There is no need to "clean the source code". Building the libraries doesn't really affect the source code, aside from generating few header files you will need when compiling your application. If you are low on disk space, you can remove folders starting with gcc_ from your %WXWIN%/build/msw folder,...
by PB
Sun Jan 19, 2014 9:53 am
Forum: C++ Development
Topic: wxNumberFormatter is broken again?
Replies: 7
Views: 2757

Re: wxNumberFormatter is broken again?

Well, you have your answer there. Manually setting locale is not "doing something extra", by definition of C++, if you don't set locale (using wxLocale or C/C++ library functions), the default locale is the C locale, NOT the user/system default one. As for why your code used to work before ... do an...
by PB
Sat Jan 18, 2014 8:10 pm
Forum: C++ Development
Topic: wxNumberFormatter is broken again?
Replies: 7
Views: 2757

Re: wxNumberFormatter is broken again?

A very silly question but still: Is your current locale using a thousand separator (the current locale is not e.g. the C locale), does wxNumberFormatter::GetThousandsSeparatorIfUsed() return true and a proper thousand separator for the current locale? Anyway, the wxNumberFormatter code is very simpl...
by PB
Mon Jan 13, 2014 8:25 pm
Forum: C++ Development
Topic: Ole Automation sample: How do you read Excel cell(s) content
Replies: 6
Views: 2521

Re: Ole Automation sample: How do you read Excel cell(s) con

Works for me when I add your code at the very end of MyFrame::OnTest(). Just be sure there is always an active workbook. Sometimes you may not be working with the instance you think you are. Happened many times to me when I debugged the app, ended it from the IDE, left the (hidden) Excel instance ha...
by PB
Mon Jan 13, 2014 7:22 pm
Forum: C++ Development
Topic: Ole Automation sample: How do you read Excel cell(s) content
Replies: 6
Views: 2521

Re: Ole Automation sample: How do you read Excel cell(s) con

I am not normally using pure wxAutomationObject calls when interacting with MS Excel (and always create a new instance anyway) but the modified wxWidgets oleauto sample appears to work as advertised. When wxAutomationInstance_UseExistingOnly is the flag excelObject.GetInstance is called with, the ex...
by PB
Mon Jan 13, 2014 6:25 am
Forum: C++ Development
Topic: Ole Automation sample: How do you read Excel cell(s) content
Replies: 6
Views: 2521

Re: Ole Automation sample: How do you read Excel cell(s) con

You can search this forum, I posted some code reading values from MS Excel using wxAutomationObject . In general, e sure the wxAutomationObject instances are valid and contain the objects they should. Just one warning, if you want to read values from range containing more than one cell and some of t...
by PB
Fri Jan 10, 2014 8:09 pm
Forum: C++ Development
Topic: wxProgressDialog and modeless Dialogs
Replies: 22
Views: 4262

Re: wxProgressDialog and modeless Dialogs

Perhaps you should post the simplified but still working code showing how you actually use the progress dialog? I would also recommend trying if the most simple usage case works for you as expected, something like wxProgressDialog pd(_("Wait please..."), _("Parsing data file..."), 100, NULL, wxPD_AP...
by PB
Thu Jan 09, 2014 6:37 am
Forum: C++ Development
Topic: add a wxchoice - name, code
Replies: 1
Views: 677

Re: add a wxchoice - name, code

You could store the code in item's client data (using wxStringClientData). This is demonstrated in wxWidgets' controls example, see its wxChoice code part.
by PB
Wed Jan 08, 2014 9:42 pm
Forum: C++ Development
Topic: wxSpinCtrl triggers two update events
Replies: 2
Views: 609

Re: wxSpinCtrl triggers two update events

I may be wrong but: One is not supposed to show modal dialogs from certain event handlers like mouse click ones, because it can break mouse capture state (IIRC that's why CallAfter was added). Perhaps that may be somewhat related?
by PB
Tue Jan 07, 2014 8:09 pm
Forum: wxDev-C++
Topic: Update wxDev-C++ with latest wxWidgets
Replies: 2
Views: 1851

Re: Update wxDev-C++ with latest wxWidgets

There is no such thing in wxWidgets 2.9+. wxODBC and contrib libraries removal ------------------------------------ ... Also the "applet", "deprecated", "fl", "mmedia" and "plot" contrib libraries were removed as they were unmaintained and broken since several years. The "gizmos", "ogl", "net" and "...
by PB
Sat Jan 04, 2014 7:18 pm
Forum: C++ Development
Topic: Dynamic array are performance killers??
Replies: 4
Views: 1601

Re: Dynamic array are performance killers??

My two cents: 1. Do not use wxWidgets' containers, they are a relict from past and these days intended pretty much only for internal wxWidgets use (wxWidgets do not use C++ std library). If possible, use std::containers instead, AFAIK, depending on the build settings, some of the wxWidgets container...
by PB
Fri Jan 03, 2014 1:59 pm
Forum: C++ Development
Topic: Automatically opening doc and view in doc/view framework
Replies: 2
Views: 656

Re: Automatically opening doc and view in doc/view framework

It has been a long time since I used MDI but I believe both your questions essentially lead to using wxDocManager::CreateDocument.

I also suggest reading Doc/View framework overview, if you hadn't done it yet.
by PB
Thu Jan 02, 2014 8:02 am
Forum: C++ Development
Topic: Document/View framework and Notebook like layout.
Replies: 4
Views: 1417

Re: Document/View framework and Notebook like layout.

I checked your blog. However, couldn't understand where is wxAuiMDIParentFrame class. This is not yet supported even in wxWidget 3.0!! You need to include <wx/aui/tabmdi.h>, the class has been there since at least 2.9x but I am not really sure AUI MDI is production ready, but I may be wrong. Also A...
by PB
Wed Jan 01, 2014 8:05 pm
Forum: C++ Development
Topic: wxListCtrl virtual perfomance
Replies: 5
Views: 1123

Re: wxListCtrl virtual perfomance

I have also never used the event, but I find odd this: A couple of experiments have shown that this event is emitted when dragging divider between columns and is not emitted when scrolling (vertically at least). I would have thought the scrolling is where the caching is most needed; I always assumed...
by PB
Wed Jan 01, 2014 3:49 pm
Forum: wxDev-C++
Topic: Upgrade wxWidgets
Replies: 7
Views: 3574

Re: Upgrade wxWidgets

Try adding the following line to your batch file, before executing mingw32-make cd %WXWIN%\build\MSW But that should be like that regardless of wxWidgets version, perhaps you you used to execute the batch file from the %WXWIN%\build\MSW folder (where the makefiles reside) before and now you are not?