Search found 4994 matches

by ONEEYEMAN
Fri Apr 09, 2021 4:59 pm
Forum: C++ Development
Topic: Using Matplotlib with wxWidgets C++
Replies: 20
Views: 415

Re: Using Matplotlib with wxWidgets C++

Hi,
2.8 does support wxStaticBox and it works just fine.
What issues you encounter when trying to build the library with 3.0? You should probably try to address them with MatPlotLib developers.

Thank you.
by ONEEYEMAN
Fri Apr 09, 2021 3:54 pm
Forum: C++ Development
Topic: Capture mouse events from childwindows
Replies: 5
Views: 96

Re: Capture mouse events from childwindows

Hi,
Mouse events are not propagated up the chain.
You need to catch it at the highest level and send it yourself down the road.

What do you want it to be caught in the window and not the children level?

Thank you.
by ONEEYEMAN
Thu Apr 08, 2021 6:48 pm
Forum: Platform Related Issues
Topic: Load resources such as images and icons in my .dll project
Replies: 10
Views: 194

Re: Load resources such as images and icons in my .dll project

Hi,
Can you show us what is your DllMain looks like?
Do you create an instance of wxApp inside the DLL?

Thank you.
by ONEEYEMAN
Mon Apr 05, 2021 4:00 am
Forum: C++ Development
Topic: Set the grid rfenderer
Replies: 3
Views: 100

Re: Set the grid rfenderer

doublemax,
You have a Hawk Eye. :D

Thank you..
by ONEEYEMAN
Sun Apr 04, 2021 11:27 pm
Forum: C++ Development
Topic: Set the grid rfenderer
Replies: 3
Views: 100

Set the grid rfenderer

Hi, ALL, #pragma once #ifndef _IMAGECELLRENDERER #define _IMAGECELLRENDERER class ImageCellRenderer : wxGridCellStringRenderer { public: ImageCellRenderer(wxImage image); virtual void Draw(wxGrid& grid, wxGridCellAttr& attr, wxDC& dc, const wxRect& rect, int row, int col, bool isSelected) wxOVERRIDE...
by ONEEYEMAN
Sat Apr 03, 2021 2:31 pm
Forum: C++ Development
Topic: wxListview header obscures first row when using wxNotebook
Replies: 12
Views: 457

Re: wxListview header obscures first row when using wxNotebook

Hi,
You say it is on level 3.
Why? Is there a reason you don't want a full blown os?

Thank you
by ONEEYEMAN
Fri Apr 02, 2021 2:58 pm
Forum: C++ Development
Topic: wxListview header obscures first row when using wxNotebook
Replies: 12
Views: 457

Re: wxListview header obscures first row when using wxNotebook

@PB,
It also could be a different theme.
@OP,
What theme do you use and what exact GTK+ version?
Do you see it under GNOME or K?

Thank you.
by ONEEYEMAN
Fri Apr 02, 2021 2:12 pm
Forum: C++ Development
Topic: wxListview header obscures first row when using wxNotebook
Replies: 12
Views: 457

Re: wxListview header obscures first row when using wxNotebook

Hi, Why do you need to set the size? Use sizes with default size and everything will work. Because I want the listview to be a different size from the default. You can override DpGetBestSize() and use any calculation you want. And then use default size with sizer. Try it and see if it helps. Thank y...
by ONEEYEMAN
Fri Apr 02, 2021 12:02 pm
Forum: C++ Development
Topic: wxListview header obscures first row when using wxNotebook
Replies: 12
Views: 457

Re: wxListview header obscures first row when using wxNotebook

Gi,
Why do you need to set the size? Use sizes with default size and everything will work.

Thank you
by ONEEYEMAN
Fri Apr 02, 2021 11:55 am
Forum: wxWidgets Development (Russian)
Topic: Как определить область Desktop-а с учетом Taskbar-а ?
Replies: 21
Views: 1418

Re: Как определить область Desktop-а с учетом Taskbar-а ?

T-Rex,
Разве что из спортивного интереса.
А вообще ЛП в корне не прав лн просто потерял идею использования кросс-платформенной биьлиотеки.

Но это ткма для отдельного разговора...

Спасибо.
by ONEEYEMAN
Fri Apr 02, 2021 11:51 am
Forum: Platform Related Issues
Topic: wxThread: Windows vs *nix
Replies: 4
Views: 213

Re: wxThread: Windows vs *nix

doublemax,
I followed the code from wxThread docs and it looks like everything works. I'll try linux/mac today, but suspect everything will work there as well.

Thank you.
by ONEEYEMAN
Fri Apr 02, 2021 11:43 am
Forum: C++ Development
Topic: Thread and GUI
Replies: 34
Views: 1365

Re: Thread and GUI

doublemax,
After removing Delete() from the thread function everything works and there is no leaks.
I'll try to check Linux and Mac today but suspect everything will work there as well.

Thank you.
by ONEEYEMAN
Fri Apr 02, 2021 2:08 am
Forum: Platform Related Issues
Topic: wxThread: Windows vs *nix
Replies: 4
Views: 213

Re: wxThread: Windows vs *nix

doublemax,
Yes it worked.
But now - where do I kill the thread? Or it will just die and all I will need is to delete the pointer?

Thank you.
by ONEEYEMAN
Fri Apr 02, 2021 1:05 am
Forum: Platform Related Issues
Topic: wxThread: Windows vs *nix
Replies: 4
Views: 213

wxThread: Windows vs *nix

Hi, ALL, wxThread::ExistCode MyThread::Entry() { while( !TestDestroy() ) { std::lock_guard<std::mutex> loocker(); int res = call_some_func(); if( res ) Delete(); } return (wxThread::ExitCode) 0; } When I run this code on Windows (8.1/MSVC 2017) everything works as expected - thread ends successfully...
by ONEEYEMAN
Thu Apr 01, 2021 3:48 pm
Forum: C++ Development
Topic: Thread and GUI
Replies: 34
Views: 1365

Re: Thread and GUI

doublemax, Everything works as it should. However I got another memory leak: ---------- Block 31768 at 0x1FABEFF0: 8 bytes ---------- Leak Hash: 0x6D2F9F2A, Count: 1, Total 8 bytes Call Stack (TID 11696): ucrtbased.dll!malloc() (Module name unavailable)!DllUnregisterServer() + 0x23CD bytes (Module n...