Search found 2430 matches

by PB
Wed Jul 08, 2020 3:46 pm
Forum: Platform Related Issues
Topic: MSW: Migration from 3.0.4 to 3.1.3 slows down (freezes) layout in wxScrolledWindow
Replies: 30
Views: 843

Re: MSW: Migration from 3.0.4 to 3.1.3 slows down (freezes) layout in wxScrolledWindow

I think the issue may be related to ticket 15766.

It is stated there it is a MS Windows problem, see here for more information and possible workaround
https://trac.wxwidgets.org/ticket/15766#comment:22
by PB
Tue Jul 07, 2020 4:35 pm
Forum: Open Discussion
Topic: Suggesting a feature
Replies: 4
Views: 104

Re: Suggesting a feature

I can't use wxTextCtrl with the wxTE_RICH2 flag since it isn't supported on the other platforms. I need the solution to work on all platforms. While wxTE_RICH(2) is for MSW only and required there to support formatting, are you sure wxTextCtrl on the other platforms does not support formatting (alt...
by PB
Tue Jul 07, 2020 7:58 am
Forum: Open Discussion
Topic: Suggesting a feature
Replies: 4
Views: 104

Re: Suggesting a feature

You can create a ticket on wxTrac or ask in the wx-users mailing group but TBH, IMO the chances for this being implemented are very low. AFAIK, the original author of wxRichTextCtrl is not very active and since its code is quite complex, other people are very keen on modifying it. I have no experien...
by PB
Tue Jul 07, 2020 6:17 am
Forum: C++ Development
Topic: wxDirDialog::ShowIFileDialog(..) hanging after 3.1.3 upgrade
Replies: 10
Views: 141

Re: wxDirDialog::ShowIFileDialog(..) hanging after 3.1.3 upgrade

The code is as vanilla as it gets. The only question remaining is the one I already asked: What is the parent. A frame, a dialog, a modal dialog... What flags was it created with (i.e., some non-default flag like wxSTAY_ON_TOP)? But if the issue happens only in your application and is no reproducibl...
by PB
Mon Jul 06, 2020 7:32 pm
Forum: C++ Development
Topic: wxDirDialog::ShowIFileDialog(..) hanging after 3.1.3 upgrade
Replies: 10
Views: 141

Re: wxDirDialog::ShowIFileDialog(..) hanging after 3.1.3 upgrade

( I basically wrote wxDirDialog::ShowIFileDialog() ) As you can see, there were no real changes in the code since 3.1.1 release https://github.com/wxWidgets/wxWidgets/commits/master/src/msw/dirdlg.cpp So either the issue is not in wxDirDialog but in the other code used (e.g., handling all modal dial...
by PB
Mon Jul 06, 2020 2:19 pm
Forum: C++ Development
Topic: how to add a string item to wxcombobox or wxlistbox or wxlistview?
Replies: 11
Views: 105

Re: how to add a string item to wxcombobox or wxlistbox or wxlistview?

wxcombobox.not have Append( ) Yes it has: https://docs.wxwidgets.org/trunk/classwx_item_container.html#a8fdc0090e3eabc762ff0e49e925f8bc4 thank you. let me have a try. but why the function doc is not in wxComboBox docs? It is there, you just need to expand section called "Public Member Functions inh...
by PB
Mon Jul 06, 2020 12:22 pm
Forum: C++ Development
Topic: wxImage not works wxNativePixelData
Replies: 2
Views: 36

Re: wxImage not works wxNativePixelData

That is not surprising as wxNativePixelData works only with wxBitmaps without the alpha channel, as clearly stated in the docs . The wxImage in your code is automatically converted to wxBitmap, but that wxBitmap probably has the alpha channel. Use wxImagePixelData with wxImage or use wxAlphaPixel da...
by PB
Fri Jul 03, 2020 2:18 pm
Forum: C++ Development
Topic: wxSpinCtrlDouble not wrapping correctly?
Replies: 6
Views: 182

Re: wxSpinCtrlDouble not wrapping correctly?

I do not think there generally is anything you as user can do here. I think wxFloatingPointValidator::IsInRange() may suffer from the same issue. Floating point comparisons are tricky. I do not understand math but FWIW I wrote a function which compares two doubles for use in GUI, using the user prov...
by PB
Fri Jul 03, 2020 6:10 am
Forum: Compiler / Linking / IDE Related
Topic: Problem linking wxWidgets to custom project using wxWidgets.props
Replies: 4
Views: 113

Re: Problem linking wxWidgets to custom project using wxWidgets.props

(I assume you have _UNICODE defined in the project) AFAIK, the .props file in 3.1.2 is broken. It was fixed here: https://github.com/wxWidgets/wxWidgets/commit/0ce6ce1a8ff33d8dd3169a7a2b801cdba83ffd49 But I am not sure if it can be even used with static release when you have both static and dynamic ...
by PB
Wed Jul 01, 2020 10:37 am
Forum: Compiler / Linking / IDE Related
Topic: Why does WX compile to different structures in Linux and Windows?
Replies: 3
Views: 98

Re: Why does WX compile to different structures in Linux and Windows?

You are wrong! You are using the wrong wx/setup.h under widows because the right one is under the lib folder. You are using the one that the wxTeam provided because too many MSVC users are to ignorant to use the correct location. Sorry, I believe this is may not be true. The correct include paths f...
by PB
Wed Jul 01, 2020 10:17 am
Forum: C++ Development
Topic: layout problem
Replies: 3
Views: 107

Re: layout problem

Remove `bSizer1` Annoyingly, wxFormBuilder requires a toplevel window to have a sizer, even if the window has just one child. Anyway, the exact code works as expected with wxWidgets master on Windows 10: twoboxes.png Full compilable code #include <wx/wx.h> class MyFrame : public wxFrame { public: M...
by PB
Mon Jun 29, 2020 7:43 pm
Forum: Compiler / Linking / IDE Related
Topic: Creating wxWidgets 3.1.3 project in Code::Blocks: No such file or directory
Replies: 32
Views: 537

Re: Creating wxWidgets 3.1.3 project in Code::Blocks: No such file or directory

I understand you are eager to write code and not read some boring documentation but you seem to be new to both wxWidgets and C++ IDEs. I would still recommend you read some guide to learn basics about wxWidgets (e.g., static vs shared or multilib vs monolithic builds) and how to set up a wxWidgets p...
by PB
Mon Jun 29, 2020 7:33 pm
Forum: Compiler / Linking / IDE Related
Topic: Creating wxWidgets 3.1.3 project in Code::Blocks: No such file or directory
Replies: 32
Views: 537

Re: Creating wxWidgets 3.1.3 project in Code::Blocks: No such file or directory

The minimal sample executable (minimal.exe) for the static debug build is built in the gcc_mswud subfolder of the minimal sample folder. Just use File Explorer to see if it is there or not and launch it?
by PB
Mon Jun 29, 2020 5:25 pm
Forum: C++ Development
Topic: wxSpinCtrlDouble not wrapping correctly?
Replies: 6
Views: 182

Re: wxSpinCtrlDouble not wrapping correctly?

I can confirm the issue and the reason being what I thought: computer floating point inaccuracy. And since a picture is worth a thousand words, please observe the actual representations of value (set to be 359.9) and m_max (set to be 359.9 as well), resulting in from the user point of view an unexpe...
by PB
Sun Jun 28, 2020 6:26 am
Forum: C++ Development
Topic: How can the best output and storage of large amounts of data
Replies: 3
Views: 130

Re: How can the best output and storage of large amounts of data

I would say: Do not write binary data to a text file which is for text strings. Use a binary file to store binary data. If you still want to store binary data as if they were strings, use wxBase64{De|En}code. See here for an example of writing binary data using wxWidgets: https://forums.wxwidgets.or...