Search found 224 matches

by ollydbg23
Thu Dec 24, 2020 3:05 am
Forum: Compiler / Linking / IDE Related
Topic: Using wxWidgets with Win10, msys2, mingw64 and CLion
Replies: 11
Views: 1271

Re: Using wxWidgets with Win10, msys2, mingw64 and CLion

Hi, tim. I see in your recent posts, you use the MSYS2's MinGW-w64 compiler to build the wxWidgets library, and later use this library. What I see the problem is: MSYS2 already have prebuild wx library, I see currently, there are libraries for wx 3.0.5 and wx 3.1.3, so I can use pacman to install th...
by ollydbg23
Wed Dec 23, 2020 7:19 am
Forum: The Code Dump
Topic: Converting OpenCV bitmap (Mat) to wxBitmap
Replies: 6
Views: 2189

Re: Converting OpenCV bitmap (Mat) to wxBitmap

Thanks for the reply. You are right, and you code runs faster than my old code: [/code] TBH, I do not understand how the old code works. I know little about OpenCV but I would say this cv::cvtColor(img, img, cv::COLOR_RGB2BGR); converts the mat from RGB to BGR colorspace. However, wxImage expects RG...
by ollydbg23
Tue Dec 22, 2020 2:48 am
Forum: The Code Dump
Topic: Converting OpenCV bitmap (Mat) to wxBitmap
Replies: 6
Views: 2189

Re: Converting OpenCV bitmap (Mat) to wxBitmap

You are right, and you code runs faster than my old code: My old code looks like below, the variable img is the OpenCV's cv::Mat. wxStopWatch stopWatch; long time = 0; stopWatch.Start(); cv::Size sz = img.size(); int imageWidth = sz.width; int imageHeight = sz.height; cv::cvtColor(img, img, cv::COLO...
by ollydbg23
Tue Dec 22, 2020 2:35 am
Forum: wxCode
Topic: Run wxPDFView simple problem in Windows10
Replies: 1
Views: 1149

Re: Run wxPDFView simple problem in Windows10

dkaip wrote:
Wed Oct 07, 2020 6:03 pm
Hello.
I have download pdfium binaries from https://github.com/bblanchon/pdfium-binaries in repo dir.
From what I see, this github repo only supply a msvc build binaries, do they have msys2/MinGW64 build libraries?
by ollydbg23
Tue Dec 22, 2020 2:32 am
Forum: wxCode
Topic: wxPDFView from sources
Replies: 6
Views: 615

Re: wxPDFView from sources

I have build wxPDFView.a on windows 10 with cmake and MinW64 and codeblocks, and after that i never managed to work. Can you share us how you did that? I have see a similar discussion: update pdfium-git / git fetch fails · Issue #6284 · msys2/MINGW-packages the pdfium-git library is hard to build u...
by ollydbg23
Thu Dec 10, 2020 5:02 am
Forum: The Code Dump
Topic: Converting OpenCV bitmap (Mat) to wxBitmap
Replies: 6
Views: 2189

Re: Converting OpenCV bitmap (Mat) to wxBitmap

Hi, your tutorial is good! I have a question: I have used the cvMat <----> wxImage functions for a very long time, such as in this post: Cool-Emerald: OpenCV with wxWidgets Also, How to obtain Alpha from cv::mat (For wxWidgets::wxImage) - OpenCV Q&A Forum or image processing - OpenCV with other GUI ...
by ollydbg23
Mon Dec 07, 2020 2:00 pm
Forum: C++ Development
Topic: memory leak reported in Visual Studio when using wxWidgets and poppler
Replies: 16
Views: 834

Re: memory leak reported in Visual Studio when using wxWidgets and poppler

FWIW, I observed a (much bigger) memory leak reported when adding OpenCV to the smallest possible wxWidgets application, without even calling any of OpenCV functions. No such leak was there for its pure Win32 application equivalent. I did not find a solution. Hi, I think this memory leak issue brin...
by ollydbg23
Sat Oct 03, 2020 2:35 pm
Forum: C++ Development
Topic: Is there an equivalent of open cv SelectRoi in wxWidgets ?
Replies: 7
Views: 445

Re: Is there an equivalent of open cv SelectRoi in wxWidgets ?

ONEEYEMAN wrote:
Thu Oct 01, 2020 9:02 pm
Hi,
Why not try the wx port of openCV?

Thank you.
Where can I find this port?
Thanks.
by ollydbg23
Thu Apr 09, 2020 2:56 am
Forum: C++ Development
Topic: wxLocale and static wxString's translation
Replies: 18
Views: 1430

Re: wxLocale and static wxString's translation

@ONEEYEMAN
Thanks, I understand your suggestion now.
Thanks for your time and help.

I think I will close this thread now.
by ollydbg23
Wed Apr 08, 2020 11:55 pm
Forum: C++ Development
Topic: wxLocale and static wxString's translation
Replies: 18
Views: 1430

Re: wxLocale and static wxString's translation

Hi, widgets sample. Found in the wxWidgets\samples\widgets. Oh, I see this sample code. I search the text "wxChoice" in all the source in this sample project. I don't know which part implements "It has a code showing how to implement it without using static variable." Do you mean this part? void Ch...
by ollydbg23
Wed Apr 08, 2020 3:26 pm
Forum: C++ Development
Topic: wxLocale and static wxString's translation
Replies: 18
Views: 1430

Re: wxLocale and static wxString's translation

ONEEYEMAN wrote:
Wed Apr 08, 2020 3:06 pm
Hi,
No it shouldn't.

Look at the widgets sample. It has a code showing how to implement it without using static variable.

Thank you.
Which sample? Thanks.
by ollydbg23
Wed Apr 08, 2020 7:08 am
Forum: C++ Development
Topic: How to display math formula or symbol in wxWidgets?
Replies: 7
Views: 1079

Re: How to display math formula or symbol in wxWidgets?

shawnee wrote:
Tue Apr 07, 2020 7:33 am
ollydbg23 wrote:
Tue Mar 24, 2020 12:57 am
https://github.com/NanoMichael/cLaTeXMath

I found another good latex render library.
Thank you, ollydbg23!
It looks good.
Please note that the cLaTeXMath project doesn't have a wxWidgets port, so you have to implement it yourself. Show us the progress if you have any good work. :D
by ollydbg23
Wed Apr 08, 2020 7:06 am
Forum: C++ Development
Topic: wxLocale and static wxString's translation
Replies: 18
Views: 1430

Re: wxLocale and static wxString's translation

Hi, Why not just make it a member of wxApp-derived class and then make a getter/setter pair? Thank you. Hi, ONEEYEMAN, a bit late reply. In-fact, I have a string array which is used to construct a wxChoice list in a setting dialog or a panel. I don't think this string array should belong to a wxApp...
by ollydbg23
Fri Apr 03, 2020 12:47 am
Forum: C++ Development
Topic: wxLocale and static wxString's translation
Replies: 18
Views: 1430

Re: wxLocale and static wxString's translation

Well, I do need to share some const strings(wxString) between classes, any good way to avoid this issue? Initialize them at run-time, e.g. with a static Init() function you call from wxApp::OnInit() OK, I understand, thanks. The steps are: 1, leave the static member string as empty string in cpp, t...