Search found 2473 matches

by PB
Wed Jan 01, 2014 3:40 pm
Forum: Compiler / Linking / IDE Related
Topic: Linker error
Replies: 1
Views: 1588

Re: Linker error

wxWidgets 3.0 AUI library for the Unicode debug build is named wxmsw30ud_aui.lib . Be aware that wxAui This contains the Advanced User Interface docking library. Requires wxAdvanced, wxHTML, wxXML, wxCore, wxBase. So be sure to add also wxmsw30ud_adv.lib , wxmsw30ud_html.lib and wxbase30ud_xml.lib ....
by PB
Tue Dec 31, 2013 3:57 pm
Forum: Platform Related Issues
Topic: Console is shown at startup
Replies: 2
Views: 1540

Re: Console is shown at startup

Have you tried adding -mwindows to the linker flags?
by PB
Sun Dec 29, 2013 10:08 pm
Forum: C++ Development
Topic: wxMDIChildFrame - CloseEvent
Replies: 4
Views: 1150

Re: wxMDIChildFrame - CloseEvent

Perhaps you could do it in the similar way it is implemented in the MDI sample and handle stuff from the wxMDIParentFrame's EVT_CLOSE handler...
by PB
Sun Dec 29, 2013 9:04 pm
Forum: C++ Development
Topic: text background
Replies: 0
Views: 606

Re: text background

Hi Which control are you using: wxTextCtrl, wxRichTextCtrl, wxStyledTextCtrl or some other control not used for text entry? Assuming wxTextCtrl; SetBackgroundColour() method doesn't work? Does it return true or false? Or are you using styles(wxTextAttr)? Which platform and wxWidgets version? I can a...
by PB
Sun Dec 29, 2013 4:30 pm
Forum: Open Discussion
Topic: Basic wx questions
Replies: 6
Views: 3330

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: 3330

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: 1150

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: 2361

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: 2361

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: 1946

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: 1946

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: 612

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: 1157

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: 13405

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: 798

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...