Search found 438 matches

by ollydbg23
Fri Feb 02, 2024 12:00 pm
Forum: Announcements and Discoveries
Topic: threepp(a three.js 3D library ported to C++) works with wxWidgets now
Replies: 5
Views: 537

Re: threepp(a three.js 3D library ported to C++) works with wxWidgets now

Nice work (although i curse you for the excessive use of the "auto" keyword in your code :) ). The "auto" keyword is not added by me, but it was originally added by two sources: The wx opengl minimal code was from https://github.com/lszl84/wx_opengl_tutorial/blob/main/src/main.c...
by ollydbg23
Fri Feb 02, 2024 2:05 am
Forum: Announcements and Discoveries
Topic: threepp(a three.js 3D library ported to C++) works with wxWidgets now
Replies: 5
Views: 537

Re: threepp(a three.js 3D library ported to C++) works with wxWidgets now

Nice work (although i curse you for the excessive use of the "auto" keyword in your code :) ). The only problem is see with threepp is that it's based on the 3 year old R129 of three.js (current is R161). I wonder how often (if ever) it gets updated. I have the same question, so I asked i...
by ollydbg23
Thu Feb 01, 2024 4:27 pm
Forum: Announcements and Discoveries
Topic: morphologica(header only and modern OpenGL visualization) library works with wxWidgets now
Replies: 0
Views: 717

morphologica(header only and modern OpenGL visualization) library works with wxWidgets now

ABRG-Models/morphologica: A library of supporting code for numerical modelling (JSON config, HDF5 data, Modern OpenGL visualization) , it is a Header-only library code to visualize C++ numerical simulations using fast, modern OpenGL. Recent days, I have take some time to help adding the wxWidgets p...
by ollydbg23
Thu Feb 01, 2024 4:20 pm
Forum: Announcements and Discoveries
Topic: threepp(a three.js 3D library ported to C++) works with wxWidgets now
Replies: 5
Views: 537

threepp(a three.js 3D library ported to C++) works with wxWidgets now

Hi, the Three.js – JavaScript 3D Library is a famous JavaScript library to show 3D object in the web browser. I just see someone has ported the code to C++, see here: markaren/threepp: C++17 port of three.js (r129) I took some time to contribute to this library, and now this threepp library works in...
by ollydbg23
Tue Dec 12, 2023 9:31 am
Forum: C++ Development
Topic: Are there any control which can pop up like wxChoice, but can be multiple selected
Replies: 4
Views: 8023

Re: Are there any control which can pop up like wxChoice, but can be multiple selected

OK, here is the modified code below: #include <wx/wx.h> #include <wx/combo.h> #include <wx/checklst.h> #include <wx/tokenzr.h> // for wxStringTokenizer #include <wx/string.h> // for wxString and wxString::Strip class CheckListComboPopup : public wxComboPopup, public wxCheckListBox { public: CheckLis...
by ollydbg23
Tue Dec 12, 2023 8:20 am
Forum: C++ Development
Topic: Are there any control which can pop up like wxChoice, but can be multiple selected
Replies: 4
Views: 8023

Re: Are there any control which can pop up like wxChoice, but can be multiple selected

Hi, thanks, here is the code: #include <wx/wx.h> #include <wx/combo.h> #include <wx/checklst.h> #include <wx/tokenzr.h> // for wxStringTokenizer #include <wx/string.h> // for wxString and wxString::Strip class CheckListComboPopup : public wxComboPopup, public wxCheckListBox { public: CheckListComboP...
by ollydbg23
Tue Dec 12, 2023 4:20 am
Forum: C++ Development
Topic: Are there any control which can pop up like wxChoice, but can be multiple selected
Replies: 4
Views: 8023

Are there any control which can pop up like wxChoice, but can be multiple selected

As we know under wxChoice, we can only select one element. In my application, I need to have a multiple select feature. Something like a image below https://www.codeproject.com/KB/combobox/checkcombo/checkcombo.gif The image is from below link: CheckComboBox Control - CodeProject Any ideas? Thanks.
by ollydbg23
Sat Dec 09, 2023 4:25 am
Forum: C++ Development
Topic: How can I determine which is the active wxAuiNotebook
Replies: 2
Views: 9324

Re: How can I determine which is the active wxAuiNotebook

wxWindow* parentWindow = focusedWindow->GetParent(); if (parentWindow && parentWindow == m_pNotebook2) { activeNotebook = m_pNotebook2; } Repeat this loop until you reach the top (parent == NULL) or found a notebook. Thanks, this solved my issue!
by ollydbg23
Fri Dec 08, 2023 3:21 pm
Forum: C++ Development
Topic: How can I determine which is the active wxAuiNotebook
Replies: 2
Views: 9324

How can I determine which is the active wxAuiNotebook

In my application, I have two wxAuiNotebook. I need to find a way to determine which is the active wxAuiNotebook. The "active" means a notebook which has a focus. The the focus window maybe not the wxAuiNotebook itself, but a panel of the notebook. Any idea on how to find this? Thanks. Thi...
by ollydbg23
Tue Dec 05, 2023 11:57 pm
Forum: C++ Development
Topic: Why some of the wxAuiNotebook events only be caught by the derived class
Replies: 8
Views: 16750

Re: Why some of the wxAuiNotebook events only be caught by the derived class

The more interesting question is why the EVT_AUINOTEBOOK_ALLOW_DND is not received, as it is explicitly sent by that code. Oh, by using the macro map event table, I can got the EVT_AUINOTEBOOK_ALLOW_DND event. The two types of the event I can't got is the EVT_AUINOTEBOOK_BEGIN_DRAG and EVT_AUINOTEB...
by ollydbg23
Tue Dec 05, 2023 7:36 am
Forum: C++ Development
Topic: Why some of the wxAuiNotebook events only be caught by the derived class
Replies: 8
Views: 16750

Re: Why some of the wxAuiNotebook events only be caught by the derived class

Maybe, the wxAuiNotebook class it self will handle the event, and do NOT run the event.Skip() function? I mean I see this code: https://github.com/wxWidgets/wxWidgets/blob/96b5c1419bca0519d32688df7dc681ac5f52a2ae/src/aui/auibook.cpp#L1662C3-L1662C3 wxBEGIN_EVENT_TABLE(wxAuiNotebook, wxBookCtrlBase) ...
by ollydbg23
Tue Dec 05, 2023 7:30 am
Forum: C++ Development
Topic: Why some of the wxAuiNotebook events only be caught by the derived class
Replies: 8
Views: 16750

Re: Why some of the wxAuiNotebook events only be caught by the derived class

Try binding the event handlers directly to the control. I tried this method, and it works. I mean, I just did the following: When the wxAuiNotebook created, I add the event handler by using the code below: // bind the event handler to the ctrl ctrl->Bind(wxEVT_AUINOTEBOOK_BEGIN_DRAG, &MyFrame::...
by ollydbg23
Sun Dec 03, 2023 9:39 am
Forum: C++ Development
Topic: Why some of the wxAuiNotebook events only be caught by the derived class
Replies: 8
Views: 16750

Re: Why some of the wxAuiNotebook events only be caught by the derived class

doublemax wrote: Sun Dec 03, 2023 8:32 am Try binding the event handlers directly to the control.
Thanks.

I'm not sure, but why does those command like event propagate to their parent window, in my case, it is the wxFrame.
by ollydbg23
Sun Dec 03, 2023 7:24 am
Forum: C++ Development
Topic: Why some of the wxAuiNotebook events only be caught by the derived class
Replies: 8
Views: 16750

Why some of the wxAuiNotebook events only be caught by the derived class

Hi, when debugging an issue I reported here: I can not drag a panel to an empty wxAuiNotebook from another wxAuiNotebook Issue #24111 wxWidgets/wxWidgets I found that some of the wxAuiNotebook events can only be caught by the derived class of the wxAuiNotebook, which means the notebook's parent wind...