Search found 3087 matches

by PB
Wed Jun 16, 2021 6:44 am
Forum: C++ Development
Topic: wxSecretStore issue
Replies: 8
Views: 1380

Re: wxSecretStore issue

I can confirm the issue and second Doublemax's opinion that it is the character conversion problem (UTF-16 input treated as char) in wxSecretValue::GetAsString(). On MSW with Unicode build it is easy to work around using pass = secret.GetAsString(wxMBConvUTF16()); However, according to the Microsoft...
by PB
Mon Jun 14, 2021 5:39 am
Forum: Platform Related Issues
Topic: wxScrolled display issues on wxGTK
Replies: 7
Views: 4066

Re: wxScrolled display issues on wxGTK

I assume you did check that the system is not using XIM (warning is there only since 3.1.5 as you saw in the link I referenced before)? I would rather solve the issue and use wxScrolled instead of implementing own scrolling which is not difficult but still tedious. Anyway, for scrollbars to work, I ...
by PB
Sun Jun 13, 2021 2:16 pm
Forum: C++ Development
Topic: How to change the caret for a wxTextCtrl?
Replies: 1
Views: 825

Re: How to change the caret for a wxTextCtrl?

I think wxCaret is for controls that do not have their own. wxTextCtrl already has a caret: Text controls usually have their own caret but wxCaret provides a way to use a caret in other windows . I think wxTextCtrl's caret cannot be changed (at least not via its metods), the native control takes car...
by PB
Sun Jun 13, 2021 2:04 pm
Forum: Platform Related Issues
Topic: wxScrolled display issues on wxGTK
Replies: 7
Views: 4066

Re: wxScrolled display issues on wxGTK

Looks similar to https://trac.wxwidgets.org/ticket/18462 but you would get a warning if using XIM so I guess it is not it?
by PB
Sun Jun 13, 2021 9:08 am
Forum: C++ Development
Topic: Translate Program
Replies: 23
Views: 3075

Re: Translate Program

As always, when troubleshooting wxTranslation issues, I recommend calling wxLog::AddTraceMask("i18n"); before initializing locale, obviously using debug build of wxWidgets. This will make wxWidgets output a lot of information about what is going on under the hood with translations and should make it...
by PB
Tue Jun 08, 2021 5:39 am
Forum: Compiler / Linking / IDE Related
Topic: ogledit Where is it and can it be built?
Replies: 24
Views: 5887

Re: ogledit Where is it and can it be built?

I had never used either but at the first glance, wxArt2D seems a bit similar to ogl. However, it is also unmaintained.
by PB
Tue Jun 08, 2021 5:38 am
Forum: C++ Development
Topic: [wxMSW] How to force a wxStaticBitmap drawing update.
Replies: 5
Views: 1661

Re: [wxMSW] How to force a wxStaticBitmap drawing update.

So to conclude: The issue was not related to wxStaticBitmap at all.

That is why people are supposed to provide the minimal possible example so other factors are easily excluded.
by PB
Mon Jun 07, 2021 7:55 pm
Forum: Compiler / Linking / IDE Related
Topic: ogledit Where is it and can it be built?
Replies: 24
Views: 5887

Re: ogledit Where is it and can it be built?

Out of curiosity, which part of that line is the problem? Error C2039 'ms_classInfo': is not a member of 'wxList' Error C2440 'return': cannot convert from 'wxExprDatabase *' to 'wxObject *' I think wxList cannot be used like this, the OGL code seems to use some superancient wxList API from which h...
by PB
Mon Jun 07, 2021 6:09 pm
Forum: Compiler / Linking / IDE Related
Topic: ogledit Where is it and can it be built?
Replies: 24
Views: 5887

Re: ogledit Where is it and can it be built?

I realized why the changes I made were easy: wxUSE_DEPRECATED and wxUSE_PROLOGIO are set to 0 in ogl/basic.h. Defining these two makes lots of stuff (including saving files) work but also opens the whole new can of worms. I think I was able to fix most of them but I failed (read gave up) when I lear...
by PB
Mon Jun 07, 2021 12:30 pm
Forum: Platform Related Issues
Topic: VS2019 wxWidgets Installation Issue
Replies: 1
Views: 2714

Re: VS2019 wxWidgets Installation Issue

Did you set the include folders correctly? Is your WXWIN system environment variable set and pointing to your wxWidgets installation? But as I wrote in your other thread, you may be better off using the wxwidgets.props property sheet instead of setting up the project manually, in particular when usi...
by PB
Mon Jun 07, 2021 10:15 am
Forum: C++ Development
Topic: Offical way to initialize wxPointlist?
Replies: 2
Views: 914

Re: Offical way to initialize wxPointlist?

Well, perhaps wxList does not support C++11 initializers?

If you build wxWidgets with wxUSE_STL set to 1, it could work but I did not try...
by PB
Mon Jun 07, 2021 8:16 am
Forum: Compiler / Linking / IDE Related
Topic: ogledit Where is it and can it be built?
Replies: 24
Views: 5887

Re: ogledit Where is it and can it be built?

I will publish it but as I wrote:
(1) I did not build it as a library, just dropped all the files into a project.
(2) I am on Windows (only).

If one is familiar with wxWidgets, the changes needed are simple, they just take some time.
by PB
Sun Jun 06, 2021 7:02 pm
Forum: Compiler / Linking / IDE Related
Topic: ogledit Where is it and can it be built?
Replies: 24
Views: 5887

Re: ogledit Where is it and can it be built?

Then the code is fine as is. It is not, at least with wxWidgets 3.1.6. I had to make a couple of changes both to the ogl files and the sample to be able to build it, including commenting out some #includes. But nothing difficult. ogl-sample.png But that is just building it and was preferring speed,...
by PB
Sun Jun 06, 2021 5:51 pm
Forum: Compiler / Linking / IDE Related
Topic: ogledit Where is it and can it be built?
Replies: 24
Views: 5887

Re: ogledit Where is it and can it be built?

I was able to build it with 3.1.6 on MSW, just as doublemax did, i.e., dropping it onto a single project and building it there. It required just few tweaks, would be even easier if wxWidgets were built with WXWIN_COMPATIBILITY_2_8 to avoid all those GDI enum warnings. It may require more tweaks for ...
by PB
Sun Jun 06, 2021 12:35 pm
Forum: Platform Related Issues
Topic: VS2019 wxWidgets Installation Issue [313]
Replies: 1
Views: 3625

Re: VS2019 wxWidgets Installation Issue [313]

Well, the error message is pretty clear: You need to put those DLLs somewhere where your executable can find them. Usually to the same folder. For just running the program from MSVS, you can set your project, see e.g. Step 5.1 here https://forums.wxwidgets.org/viewtopic.php?f=19&t=46700#p196105 BTW,...