Search found 2439 matches

by PB
Sun Dec 29, 2013 4:30 pm
Forum: Open Discussion
Topic: Basic wx questions
Replies: 6
Views: 3275

Re: Basic wx questions

No, there is not. Are there any comparable toolkits that work like that - e.g. neither MFC nor Qt support it. Given the size of the libraries, it probably wouldn't be feasible anyway (unlike with e.g. some Boost classes or SQLite amalgam C code). I am just curious, why would you want to do that and ...
by PB
Sun Dec 29, 2013 2:10 pm
Forum: Open Discussion
Topic: Basic wx questions
Replies: 6
Views: 3275

Re: Basic wx questions

1) Does it need .Net? 2) Does it compile to native code? 3) Is there a header only method? 4) If 3 is false, can it be statically linked so there are no external wx* dependencies to a release binary? 5) If 4 is true, are there any legal restrictions regarding same? 1. No. 2. Yes 3. Not sure what yo...
by PB
Fri Dec 27, 2013 7:16 pm
Forum: C++ Development
Topic: wxMDIChildFrame - CloseEvent
Replies: 4
Views: 1141

Re: wxMDIChildFrame - CloseEvent

As you didn't state your platform... Does it work as expected in MDI sample bundled with wxWidgets where AFAICS it is done pretty much the same way as in the code you posted? It certainly does for me on Windows with wxWidgets 3.01.
by PB
Fri Dec 13, 2013 8:26 am
Forum: C++ Development
Topic: Running text based exe in new process
Replies: 9
Views: 2312

Re: Running text based exe in new process

Sorry, I didn't notice you need to do that from the secondary thread. I have no idea how to do what you want then.
by PB
Fri Dec 13, 2013 6:29 am
Forum: C++ Development
Topic: Running text based exe in new process
Replies: 9
Views: 2312

Re: Running text based exe in new process

Hello,

Perhaps you could take a look at wxWidgetss exec sample, I believe it demonstrates how to launch a command line tool and display its output, check out its menu command Exec/Capture command output .

Petr
by PB
Mon Dec 02, 2013 7:59 pm
Forum: C++ Development
Topic: Date format in wxLocale
Replies: 8
Views: 1918

Re: Date format in wxLocale

Sorry, I have no experience whatsoever with wxGridCellDateTimeRenderer, so I just ask again: Is the locale you set earlier still in effect during the lifetime of your Grid ? In another words, set your locale before you create the grid and ensure its instance doesn't get destroyed before the grid/fra...
by PB
Mon Dec 02, 2013 6:15 pm
Forum: C++ Development
Topic: Date format in wxLocale
Replies: 8
Views: 1918

Re: Date format in wxLocale

You answered your own question already. In order to preserve the set locale, its instance can not go out of scope. If your locale is supposed to be application-wide, set it e.g. in the OnInit() method of your wxApp instance. You can take a look at the code in the internat sample (located in %WXWIN%\...
by PB
Mon Dec 02, 2013 7:08 am
Forum: C++ Development
Topic: wxPaintEvent not working while using with class wxStaticText
Replies: 2
Views: 597

Re: wxPaintEvent not working while using with class wxStatic

I know nothing about Linux but I guess this remark Please notice that in general it is impossible to change the drawing of a standard control (such as wxButton) and so you shouldn't attempt to handle paint events for them as even if it might work on some platforms, this is inherently not portable an...
by PB
Sun Dec 01, 2013 1:25 pm
Forum: Compiler / Linking / IDE Related
Topic: How to build wxFlatNotebook for VS 2010?
Replies: 4
Views: 1145

Re: How to build wxFlatNotebook for VS 2010?

I have not done it, so it may not be as easy as it sounds, but: Can't you just use custom wxAuiTabArt for the notebook? Simplest but not most elegant or efficient solution would be just to override its DrawTab method and copy the code from e.g. wxAuiSimpleTabArt, only changing the color/brush to you...
by PB
Tue Nov 26, 2013 7:36 pm
Forum: wxCode
Topic: assert GetEventHandler()== this failed
Replies: 5
Views: 13202

Re: assert GetEventHandler()== this failed

As this is rather common problem with (the first-time use of) AUI, I am surprised patch from this ticket, seemingly simple, working and backwards compatible was not been applied long time ago. Perhaps it somewhat slipped through the cracks...
by PB
Wed Apr 10, 2013 7:42 am
Forum: C++ Development
Topic: wxClientDC instantiation gives a segmentation fault
Replies: 2
Views: 792

Re: wxClientDC instantiation gives a segmentation fault

I just skimmed the code, so I may be missing something, but I also don't see you initializing local variables width and height in _43ProjectFrame::outputBinaryTree (), so they point to random values (or maybe are set to NULL/arbitrary value in the debug build, depending on you compiler) prior to cal...
by PB
Thu Feb 07, 2013 6:55 pm
Forum: C++ Development
Topic: setting borders in exel sheet
Replies: 1
Views: 748

Re: setting borders in exel sheet

Hi, on the wxWidgets side you have to use wxAutomationObject, see oleauto sample how to use it. On Excel side, you need to either use Range.Borders property or Range.BorderAround() method etc. You could also give my wxAutoExcel library (currently only SVN version available , requires MSVC 2008 and w...
by PB
Thu Jan 31, 2013 7:27 am
Forum: General Development
Topic: How to Moving Excel Sheet by wxAutomationObject
Replies: 5
Views: 2856

Re: How to Moving Excel Sheet by wxAutomationObject

That's exactly the same answer I already gave you. Twice.
by PB
Mon Jan 28, 2013 3:41 pm
Forum: General Development
Topic: How to Moving Excel Sheet by wxAutomationObject
Replies: 5
Views: 2856

Re: How to Moving Excel Sheet by wxAutomationObject

As I wrote before, I believe you should call sheet ->CallMethod("Move", variant ) (assuming sheet is a valid wxAutomation object containing IDispatch of a worksheet), where variant should be a wxVariant named "Before", with type of void*, containing IDispatch of the sheet you wish to move sheet befo...
by PB
Mon Jan 28, 2013 12:36 pm
Forum: General Development
Topic: How to Moving Excel Sheet by wxAutomationObject
Replies: 5
Views: 2856

Re: How to Moving Excel Sheet by wxAutomationObject

[My 2 cents] I believe the issue is at least with the following line sheet.PutProperty("move", wxVariant("Before:=Sheet(1)")); 1. Based on the pasted code, it appears that sheet is not a valid automation object. 2. Move is a method, not a property. 3. I doubt the wxVariant containing string "Before:...