Search found 5031 matches

by ONEEYEMAN
Wed Apr 21, 2021 7:19 pm
Forum: General Development
Topic: wxWidgets independednt static library
Replies: 2
Views: 109

Re: wxWidgets independednt static library

Hi,
Also, why do you link wxWidgets statically to your DLL?
You already have a DLL which should run its won everything - why not link dynamically?

That way only one wx instance will be in memory and there will be no breakage with updating and everything.

Thank you.
by ONEEYEMAN
Wed Apr 21, 2021 6:32 pm
Forum: Platform Related Issues
Topic: Glew init error with GTK3 wx 3.1.5
Replies: 7
Views: 78

Re: Glew init error with GTK3 wx 3.1.5

Hi,
It is possible that calling it inside the OnPaint() is already too late.

So I would try to move it in the init routine of you frame and try again. There uis a reason for it to be called "init" ;-)

Thank you.
by ONEEYEMAN
Wed Apr 21, 2021 5:41 pm
Forum: C++ Development
Topic: size of elements
Replies: 5
Views: 122

Re: size of elements

Hi, You definitely should be using sizers and not trying to tweak the font/size unless absolutely necessary. As doublemax said - sizers are doing layout for you. In the beginning it is better to have some RAD tool to create GUI (if you don't use C::B/CodeLite, you can use wxGlade), then look at the ...
by ONEEYEMAN
Wed Apr 21, 2021 1:47 pm
Forum: Platform Related Issues
Topic: Glew init error with GTK3 wx 3.1.5
Replies: 7
Views: 78

Re: Glew init error with GTK3 wx 3.1.5

Hi,
Can you at least explain why you are initializing it the paint event?

Thank you.
by ONEEYEMAN
Wed Apr 21, 2021 12:07 pm
Forum: Platform Related Issues
Topic: Glew init error with GTK3 wx 3.1.5
Replies: 7
Views: 78

Re: Glew init error with GTK3 wx 3.1.5

Hi,
Why can't you modify your code to match the sample?

Thank you.
by ONEEYEMAN
Mon Apr 19, 2021 12:27 pm
Forum: Platform Related Issues
Topic: GTK3 / wxStaticText size
Replies: 21
Views: 1015

Re: GTK3 / wxStaticText size

Hi,
Do you have a simple and minimal reproducer? Preferably as a patch to one of the samples?

Thank you.
by ONEEYEMAN
Sun Apr 18, 2021 6:08 pm
Forum: C++ Development
Topic: wxAuiNotebook::OnLeftUp not working
Replies: 21
Views: 200

Re: wxAuiNotebook::OnLeftUp not working

Hi,
But did you actually run the code?

And as mentioned before - could you post your code from the minimal sample so we can see what is happenning?

Thank you.
by ONEEYEMAN
Sun Apr 18, 2021 4:54 pm
Forum: C++ Development
Topic: wxAuiNotebook::OnLeftUp not working
Replies: 21
Views: 200

Re: wxAuiNotebook::OnLeftUp not working

Hi,
Did you try it?
And we still wants to see your reproducer...

Thank you.
by ONEEYEMAN
Sun Apr 18, 2021 3:17 pm
Forum: C++ Development
Topic: wxAuiNotebook::OnLeftUp not working
Replies: 21
Views: 200

Re: wxAuiNotebook::OnLeftUp not working

Hi,
So can we get the "minimal sample reproducing the problem"

It should be as minimal as possible and can be easily run after compiling.

Just post the sources here. Don't attach the archive.

Thank you.
by ONEEYEMAN
Sun Apr 18, 2021 1:35 pm
Forum: C++ Development
Topic: wxAuiNotebook::OnLeftUp not working
Replies: 21
Views: 200

Re: wxAuiNotebook::OnLeftUp not working

Hi,
Is auidemo sample works for you?

Thank you.
by ONEEYEMAN
Sun Apr 18, 2021 1:32 pm
Forum: C++ Development
Topic: Is there automatic dynamic Unbinding upon windows deletion?
Replies: 2
Views: 58

Re: Is there automatic dynamic Unbinding upon windows deletion?

Hi,
You shouldn't care about Unbind()'ing the event handler. Everything will be destroyed properly.

Try it and get back if it doesn't

Thank you.
by ONEEYEMAN
Sun Apr 18, 2021 5:37 am
Forum: The Code Dump
Topic: Simple wxSwitchCtrl class
Replies: 9
Views: 320

Re: Simple wxSwitchCtrl class

Hi, IIUC this control can be implemented natively n GTK and OSX and MSW will use generic version. If you are familiar with GTK/OSX and can create native implementation for those toolkit, it is better to make it as one PR for all 3 platforms. But if you are not - submitting just you implementation wi...
by ONEEYEMAN
Sat Apr 17, 2021 3:40 am
Forum: Compiler / Linking / IDE Related
Topic: Have anyone tried the meganz mingw-std-threads C++11 std::thread for mingw-w64 win32 for production without issues?
Replies: 1
Views: 83

Re: Have anyone tried the meganz mingw-std-threads C++11 std::thread for mingw-w64 win32 for production without issues?

Hi, While wxWidgets is not using C++11, no one prevents you from using C++11 in your own code. I'm doing that and I don't have any issues. You will need to compile wxWidgets in C++11 mode. but that''s about it. And it is only to keep the same exact options to the compiler. Just use std::thread unles...
by ONEEYEMAN
Fri Apr 16, 2021 8:39 pm
Forum: The Code Dump
Topic: Simple wxSwitchCtrl class
Replies: 9
Views: 320

Re: Simple wxSwitchCtrl class

Hi, FWIW, GTK has this control natively, and MSW (WPF I think) has it as well. GTK reference - https://docs.gtk.org/gtk4/class.Switch.html. Not sure about the OSX thiough - it looks like it is available for OSX since 10.15 (ref. https://developer.apple.com/documentation/appkit/nsswitch?language=objc...
by ONEEYEMAN
Fri Apr 16, 2021 4:57 pm
Forum: Platform Related Issues
Topic: GTK3 / wxStaticText size
Replies: 21
Views: 1015

Re: GTK3 / wxStaticText size

Hi, This is actually very easy and straightforward. 1. Download and untar the archive (in e.g. ~/wxWidgets-3.1.5) 2. cd ~/wxWidgets-3.1.5 mkdir buildGTK cd buildGTK ../configure --with-gtk=3 --enable-debug make -j4 sudo make install 3. Recompile your project 4. Test Very simple and it will take abou...