Search found 7479 matches

by ONEEYEMAN
Fri Mar 15, 2024 11:45 am
Forum: C++ Development
Topic: wxGLCanvas
Replies: 16
Views: 6285

Re: wxGLCanvas

Hi,
What coordinates do you save?
Are you saving screen coordinates or client coordinates?

Thank you.
by ONEEYEMAN
Fri Mar 15, 2024 4:24 am
Forum: Compiler / Linking / IDE Related
Topic: moving to MS Win
Replies: 24
Views: 13022

Re: moving to MS Win

Hi, Don't forget to follow PB's advise and turn on the option to build samples IF you will use CMake. In terms of yu questions: I am not familiar with CMake, but maybe there is a conflict between building the library + samples vs building the samples based on the prebuilt binaries when using CMake? ...
by ONEEYEMAN
Thu Mar 14, 2024 8:22 pm
Forum: Compiler / Linking / IDE Related
Topic: moving to MS Win
Replies: 24
Views: 13022

Re: moving to MS Win

Hi, The samples build process (especially with CMake) is designed to be used with the self-built libraries. You can try to adapt your own "hello world" CMake configuration (and I guess this is what you are doing, but that's not how things is officially supported. So, presumably you should ...
by ONEEYEMAN
Thu Mar 14, 2024 5:03 pm
Forum: Compiler / Linking / IDE Related
Topic: moving to MS Win
Replies: 24
Views: 13022

Re: moving to MS Win

Hi, Its easier and simpler to build everything. Keep in mind that wxWidgets already have CMake configuration made for you. All you need to do is to start it, set the option to build the samples and run the build. Or since you are using MSVC you can just try to build using MSVC solution for the libra...
by ONEEYEMAN
Thu Mar 14, 2024 2:19 pm
Forum: C++ Development
Topic: wxGrid object's ref count assertion failed in multi-threading
Replies: 31
Views: 9491

Re: wxGrid object's ref count assertion failed in multi-threading

Hi,
Just don't waste time and do it as I wrote.
You can use threads if you want to. Remember - threads exists so that your program can respond to something unrelated. But you need to make it work properly.

Thank you.
by ONEEYEMAN
Thu Mar 14, 2024 2:14 pm
Forum: C++ Development
Topic: wxGLCanvas
Replies: 16
Views: 6285

Re: wxGLCanvas

Hi,
Why? You have a coordinate of you click in the mouse event handler.
Or you mean you want the canvas to stay at the same place?

Thank you.
by ONEEYEMAN
Thu Mar 14, 2024 2:00 pm
Forum: Compiler / Linking / IDE Related
Topic: moving to MS Win
Replies: 24
Views: 13022

Re: moving to MS Win

Hi, On top of what PB wrote. Its pretty weird that you use the pre-built binaries even so you have a source code so that you need to build the samples. Remove the binaries and build everything yourself. More over since quite some time now wxWidgets provide CMake configuration so that people can use ...
by ONEEYEMAN
Thu Mar 14, 2024 1:54 pm
Forum: C++ Development
Topic: wxGLCanvas
Replies: 16
Views: 6285

Re: wxGLCanvas

Hi,
Do you also change the scaling, or just the resolution?

Thank you.
by ONEEYEMAN
Thu Mar 14, 2024 1:51 pm
Forum: C++ Development
Topic: wxGrid object's ref count assertion failed in multi-threading
Replies: 31
Views: 9491

Re: wxGrid object's ref count assertion failed in multi-threading

Hi, As PB said - this is obviously and definitely wrong. All you do is the following: 1. In the thread create a payload of the data you want to paint. 2. Send wxThreadEvent with that payload to the GUI thread. 3. In the GUI thread wxThreadEvent handler get the payload and call Refresh. 4. In the GUI...
by ONEEYEMAN
Wed Mar 13, 2024 8:44 pm
Forum: Compiler / Linking / IDE Related
Topic: When compiling and building /samples/richtext : undefined reference to symbol '_ZN12wxHtmlWindow6CreateEP8wxWindowiRK7wx
Replies: 11
Views: 16276

Re: When compiling and building /samples/richtext : undefined reference to symbol '_ZN12wxHtmlWindow6CreateEP8wxWindowiR

Hi,
wxWidgets can be successfully built with CMake.
It does so in multiple CI build servers.

Please check the configuration of the CMake before claiming. Compare what you have with the official wxWidgets file.

Thank you.
by ONEEYEMAN
Wed Mar 13, 2024 3:56 pm
Forum: C++ Development
Topic: XRCCTRL anomaly?
Replies: 10
Views: 4441

Re: XRCCTRL anomaly?

Hi,
We understand that.
What I meant is - what do you want to achieve?

Thank you.
by ONEEYEMAN
Wed Mar 13, 2024 1:50 pm
Forum: C++ Development
Topic: XRCCTRL anomaly?
Replies: 10
Views: 4441

Re: XRCCTRL anomaly?

Hi,
Please describe in plain English what is your problem and why you can't use xrc sample to solve it.

Thank you.
by ONEEYEMAN
Wed Mar 13, 2024 11:48 am
Forum: C++ Development
Topic: XRCCTRL anomaly?
Replies: 10
Views: 4441

Re: XRCCTRL anomaly?

Hi,
Did yoi check the documentation for wxMenuBar? And xrc sample?

Thank you.
by ONEEYEMAN
Wed Mar 13, 2024 11:44 am
Forum: C++ Development
Topic: Resize wxFrame according to
Replies: 5
Views: 4164

Re: Resize wxFrame according to

Hi,
But why do you want it in your code?

Thank you.