Search found 2465 matches

by PB
Mon Feb 24, 2014 6:27 pm
Forum: C++ Development
Topic: Redrawing WxWidgets Window Resize
Replies: 9
Views: 4062

Re: Redrawing WxWidgets Window Resize

I may be wrong, but isn't it one of the styles that can't be changed after the window is created ? That's why I asked if you create the window with this style. But there can be other reasons why that window of yours doesn't repaint properly. wxFULL_REPAINT_ON_RESIZE is just one solution, ensuring th...
by PB
Mon Feb 24, 2014 5:11 pm
Forum: C++ Development
Topic: Redrawing WxWidgets Window Resize
Replies: 9
Views: 4062

Re: Redrawing WxWidgets Window Resize

Do you create that window with wxFULL_REPAINT_ON_RESIZE style?
by PB
Thu Feb 13, 2014 12:11 pm
Forum: C++ Development
Topic: OnExceptionInMainLoop
Replies: 3
Views: 883

Re: OnExceptionInMainLoop

If the sample works and your code not, it appears the issue is not in the library but in your code. Sorry, the only things that come to my mind are silly, like mistyping the method name etc. I did not even know you could compile wxWidgets 2.8 for 64-bit Windows, was the sample code compiled the same...
by PB
Wed Feb 12, 2014 2:01 pm
Forum: C++ Development
Topic: OnExceptionInMainLoop
Replies: 3
Views: 883

Re: OnExceptionInMainLoop

As you didn't provide any code nor stated your platform and wxWidgets version, the usual question arises: Does it work for you as expected in the except sample bundled with wxWidgets?
by PB
Tue Feb 11, 2014 9:05 am
Forum: C++ Development
Topic: How to Open a default Browser in Linux?
Replies: 2
Views: 666

Re: How to Open a default Browser in Linux?

What about wxLaunchDefaultBrowser?
No idea if it works as advertised on Linux.

Sorry if my reply did not come soon enough.
by PB
Tue Feb 04, 2014 6:40 pm
Forum: C++ Development
Topic: wxRearrangeDialog
Replies: 22
Views: 2844

Re: wxRearrangeDialog

Should be fixed now, thanks to Vadim Zeitlin: http://trac.wxwidgets.org/changeset/75786
by PB
Mon Feb 03, 2014 8:48 am
Forum: C++ Development
Topic: wxRearrangeDialog
Replies: 22
Views: 2844

Re: wxRearrangeDialog

I can confirm there is something wrong with using SetCheck() and wxRearrangeDialog (wxWidgets 3.0, MSW). Using the simplest possible example (items are in the order they were inserted in) #include <wx/wx.h> #include <wx/rearrangectrl.h> class MyRearrangeDialog : public wxRearrangeDialog { public: My...
by PB
Fri Jan 31, 2014 11:30 am
Forum: C++ Development
Topic: wxBookCtrlBase::FindPage - wxNOT_FOUND
Replies: 4
Views: 1162

Re: wxBookCtrlBase::FindPage - wxNOT_FOUND

OK, I will file a ticket but the wxAuiNotebook implementation is undergoing heavy changes, so...
by PB
Fri Jan 31, 2014 11:16 am
Forum: C++ Development
Topic: wxBookCtrlBase::FindPage - wxNOT_FOUND
Replies: 4
Views: 1162

Re: wxBookCtrlBase::FindPage - wxNOT_FOUND

Looks like a bug to me (one of many in wxAuiNotebook). There seems to be a bit of schizophrenia when it comes to checking the page count. size_t wxAuiNotebook::GetPageCount() const { return m_tabs.GetPageCount(); } vs int wxBookCtrlBase::FindPage(const wxWindow* page) const { const size_t nCount = m...
by PB
Fri Jan 31, 2014 10:18 am
Forum: C++ Development
Topic: Failing at custom events
Replies: 3
Views: 709

Re: Failing at custom events

Your code used in the most basic sample app works just fine for me with the panel being a chiild of a top-level wxFrame. The only difference is wxWidgets (3.0 MSW) are linked statically (and using wxLogMessage() instead of Application().LogMessage()). ColorSlider.h #ifndef COLORWIDGET_H_ #define COL...
by PB
Thu Jan 30, 2014 2:31 pm
Forum: C++ Development
Topic: Covert EOL End of Line from mac to windows.
Replies: 7
Views: 2109

Re: Covert EOL End of Line from mac to windows.

Again, as I wrote before - It worked for me out of the box using autodetection (aside from not preserving the BOM marker) with the file you provided, no changes were necessary. I still believe you should treat the file as UTF-8 encoded (based on the BOM marker your original file had), have you teste...
by PB
Thu Jan 30, 2014 1:11 pm
Forum: C++ Development
Topic: Covert EOL End of Line from mac to windows.
Replies: 7
Views: 2109

Re: Covert EOL End of Line from mac to windows.

papayrus, as I told you in the related thread, wxTextFile handles different line endings just fine (as of wxWidgets 3.0), the real problem problem being that wxTextFile doesn't write UTF BOM which the original ini file has and you supposedly have to preserve.
by PB
Fri Jan 24, 2014 10:42 am
Forum: C++ Development
Topic: file.write is erasing all text
Replies: 17
Views: 4519

Re: file.write is erasing all text

Sorry, I told you all I knew about the issue in my previous posts. I do not posses any further information regarding this topic.
by PB
Fri Jan 24, 2014 6:32 am
Forum: C++ Development
Topic: file.write is erasing all text
Replies: 17
Views: 4519

Re: file.write is erasing all text

How did you figure out that it is UTF 8 BOM and how can I convert the file? Is it possible to convert the file header and is it possible to convert it vis code in wxwidgets? I looked at the original file in the hexadecimal viewer and noticed the BOM there. For example, if you open such file in Wind...
by PB
Thu Jan 23, 2014 7:32 pm
Forum: C++ Development
Topic: file.write is erasing all text
Replies: 17
Views: 4519

Re: file.write is erasing all text

wxString fileName("c:\\rev.ini"); wxTextFile tf; if ( tf.Open(fileName) ) { tf.Write(); } The file data are preserved, but the saved file is 3 bytes shorter. The difference is the original file has a UTF-8 BOM header, the resulting one does not. Edit wxTextFile does not support BOM header, see http...