Search found 2020 matches

by PB
Sat Sep 14, 2019 7:38 am
Forum: C++ Development
Topic: autocompletion for wxTextCtrl to match any part of input
Replies: 1
Views: 36

Re: autocompletion for wxTextCtrl to match any part of input

Last time the question got asked here and it was quite recently, it seemed no one could come with more information.
viewtopic.php?f=21&t=45990&p=192897&hil ... on#p192063
by PB
Wed Sep 04, 2019 8:30 am
Forum: C++ Development
Topic: wxLocal::AddCatalog not working in 3.1.2.?
Replies: 1
Views: 47

Re: wxLocal::AddCatalog not working in 3.1.2.?

There is a bug related to this, that sneaked into 3.1.2 right before its release. It has been fixed in the master
https://github.com/wxWidgets/wxWidgets/ ... c151e73375
by PB
Tue Sep 03, 2019 4:55 pm
Forum: Compiler / Linking / IDE Related
Topic: Visual Studio 2019 issue with static linking
Replies: 5
Views: 122

Re: Visual Studio 2019 issue with static linking

I don't know what you mean by "assuming your defines are correct". I meant that in regard with using "automagical" wxWidgets library linking by listing MSVC-specific include first as I suggested. For example, you have define "_DEBUG" to have debug configuration linked or "WXUSINGDLL" when you want ...
by PB
Tue Sep 03, 2019 5:23 am
Forum: Compiler / Linking / IDE Related
Topic: Visual Studio 2019 issue with static linking
Replies: 5
Views: 122

Re: Visual Studio 2019 issue with static linking

You seem to be missing Windows import library comctl32.lib from the list provided to the linker. BTW, this ..\source;C:\wxWidgets-3.0.4\lib\vc_lib\mswu;C:\wxWidgets-3.0.4\include;C:\wxWidgets-3.0.4\include\msvc could be changed to this (notice that wxWidgets msvc-specific include precedes generic wx...
by PB
Mon Sep 02, 2019 5:15 am
Forum: C++ Development
Topic: Image data (only) checksum/digest
Replies: 6
Views: 102

Re: Image data (only) checksum/digest

As you wrote, if lossy compression was used (JPG), merely the data checksum will not be enough: depending on compression setting unmodified TIFF image saved as JPEG can have different pixels than the original. One will have to compare the images by actual picture content (OpenCV?) which can get more...
by PB
Thu Aug 29, 2019 7:33 am
Forum: General Development
Topic: Add widgets in code or using the codeblocks gui?
Replies: 1
Views: 156

Re: Add widgets in code or using the codeblocks gui?

There may be a third option: I am not familiar with Code::Blocks (nor wxSmith) but I believe you can use wxFormBuilder with C:B as well, even if it is probably not as integrated as wxSmith. wxFormBuilder is not perfect but a visual tool is often handy and preferable to doing the form layout by hand....
by PB
Tue Aug 27, 2019 10:50 am
Forum: C++ Development
Topic: How to use Widgets from a dll
Replies: 6
Views: 129

Re: How to use Widgets from a dll

There is no difference in code when using static and dynamic builds of wxWidgets. The differences are in project setup (defines, folders) and that DLLs must be available to the program at runtime, see e.g. here https://forums.wxwidgets.org/viewtopic.php?f=19&t=46212 for instructions how to switch be...
by PB
Tue Aug 27, 2019 6:40 am
Forum: C++ Development
Topic: listbox problem
Replies: 4
Views: 73

Re: listbox problem

To reproduce the issue, just launch widgets sample, go to listbox page, add some items and click on them. You can see if the event gets handled in the sample log window. If the events are there, i.e., you could not reproduce the issue with the sample, the issue is not in wxWidgets but in your code. ...
by PB
Mon Aug 26, 2019 10:58 am
Forum: Platform Related Issues
Topic: UTF8 characters corrupt on GUI in Windows
Replies: 6
Views: 142

Re: UTF8 characters corrupt on GUI in Windows

wxT() converts narrow string literal to wide (Unicode) or keeps a narrow one in non-Unicode build. However, as I wrote before on MSW it expects UTF16 encoding and not UTF-8 one for a Unicode string. You could perhaps change this compiler behaviour using the MSVC setting I linked in my previous post....
by PB
Mon Aug 26, 2019 6:22 am
Forum: Platform Related Issues
Topic: UTF8 characters corrupt on GUI in Windows
Replies: 6
Views: 142

Re: UTF8 characters corrupt on GUI in Windows

How do you convert those string literals to wxStrings? If they are in UTF-8, wxStríng(literal) will not work, as on MSW wxString expects a (unicode) literal to be UTF16. Have you tried wxString::FromUTF8(literal)? I always say non 7-bit ASCII in the source files is brittle (depends on platform and c...
by PB
Sat Aug 24, 2019 5:53 pm
Forum: C++ Development
Topic: Question about sizing
Replies: 3
Views: 56

Re: Question about sizing

This may depend on your use case, if you are doing it only for one window (e.g., a top level frame), try CallAfter()?

Or just fire a one-short wxTimer with a short duration (e.g., 150 ms) from the wxSizeEvent handler and do the work in the wxTimerEvent handler once the things supposedly settled.
by PB
Sat Aug 24, 2019 1:09 pm
Forum: Compiler / Linking / IDE Related
Topic: CreateProcess, The system cannot find the file specified error
Replies: 2
Views: 70

Re: CreateProcess, The system cannot find the file specified error

Manolo wrote:
Sat Aug 24, 2019 12:44 pm
The right path is
C:\SDK\wxWidgets\wx312\docs\msw\install.txt
Actually, the docs have been converted from plain text to Mark Down some time ago, so the extension for v3.1.2 is .md and not .txt.
by PB
Thu Aug 22, 2019 6:26 am
Forum: Platform Related Issues
Topic: wxRadioBox appearance on Mac is messed up
Replies: 4
Views: 89

Re: wxRadioBox appearance on Mac is messed up

I do not use OSX and it may not be the issue since you say it works on MSW but... To me, the parents you create the controls with seem odd. The expiryRadioBox (wxRadioBox) is created with itemDialog1 as the parent, whatever itemDialog1 is. Then rBoxSizer (wxStaticBoxSizer) is created with this as th...
by PB
Sat Aug 17, 2019 7:08 pm
Forum: Compiler / Linking / IDE Related
Topic: Trouble compiling /samples/artprov
Replies: 14
Views: 242

Re: Trouble compiling /samples/artprov

Use the makefile that's inside the directory for each sample. I am not using Linux but I believe that the makefiles in individual samples' directories are for Windows (MinGW) only. On Linux the makefiles for samples are produced in the build dir for the library. I assume you are familiar with the o...
by PB
Sat Aug 17, 2019 3:38 pm
Forum: C++ Development
Topic: Is it possible to display only wxPanel without wxFrame?
Replies: 1
Views: 47

Re: Is it possible to display only wxPanel without wxFrame?

I believe you cannot, only wxNonOwnedWindow descendants are supposed to be shown "uncontained". wxPanel is a container for controls, placed inside a top level window. It would make little sense to display a wxPanel like this, you probably want to use something like wxPopUpWindow or wxMiniframe inste...