Search found 7 matches
- Wed Jul 01, 2020 6:46 pm
- Forum: C++ Development
- Topic: Overloaded methods wxPopupWindow::OnDismiss and wxPopupTransientWindow::ProcessLeftDown are not called
- Replies: 8
- Views: 1435
- Wed Jul 01, 2020 5:37 pm
- Forum: C++ Development
- Topic: Overloaded methods wxPopupWindow::OnDismiss and wxPopupTransientWindow::ProcessLeftDown are not called
- Replies: 8
- Views: 1435
Re: Overloaded methods wxPopupWindow::OnDismiss and wxPopupTransientWindow::ProcessLeftDown are not called
I see what you mean, but now I can make appear and disappear the myPopup with myButton using the overloaded OnDismiss() method. I really appreciated your help, thank you very much! By the way, I just have a small question: Is it a good practice to put more complex controls inside a wxPopupWindow/wxP...
- Wed Jul 01, 2020 2:17 pm
- Forum: C++ Development
- Topic: Overloaded methods wxPopupWindow::OnDismiss and wxPopupTransientWindow::ProcessLeftDown are not called
- Replies: 8
- Views: 1435
Re: Overloaded methods wxPopupTransientWindow::OnDismiss and wxPopupTransientWindow::ProcessLeftDown are not called
I changed the Dismiss() call by DismissAndNotify() as you said, and now the overloaded myPopup::OnDismiss() method is called. It's a big step thank you ! But the myPopup::ProcessLeftDown method is not still called... Do you know if there is a way to do the same "hack" for this method?
- Tue Jun 30, 2020 8:22 pm
- Forum: C++ Development
- Topic: Overloaded methods wxPopupWindow::OnDismiss and wxPopupTransientWindow::ProcessLeftDown are not called
- Replies: 8
- Views: 1435
Re: Overloaded methods wxPopupWindow::OnDismiss and wxPopupTransientWindow::ProcessLeftDown are not called
Yes of course I was wrong, it's wxPopupTransientWindow::OnDismiss(). Here's my code: myPopup.hpp #pragma once #include <wx/popupwin.h> class myPopup : public wxPopupTransientWindow { public: myPopup( wxWindow* parent, wxWindowID id = wxID_ANY, wxSize const& size = wxDefaultSize); virtual void Po...
- Tue Jun 30, 2020 5:32 pm
- Forum: C++ Development
- Topic: Overloaded methods wxPopupWindow::OnDismiss and wxPopupTransientWindow::ProcessLeftDown are not called
- Replies: 8
- Views: 1435
Overloaded methods wxPopupWindow::OnDismiss and wxPopupTransientWindow::ProcessLeftDown are not called
Hi, Is there a way to toggle a wxPopupTransientWindow? I have a simple control with an OnMouseLeftDown and OnMouseLeftUp method, with which I would like to make a wxPopupTransientWindow appear and disappear. But when the popup is shown and I click out, the popup closes (I'm OK with that), so I tried...
- Thu Mar 05, 2020 5:00 pm
- Forum: C++ Development
- Topic: wxMemoryDC::DrawText Keep AA with huge font size
- Replies: 2
- Views: 593
Re: wxMemoryDC::DrawText Keep AA with huge font size
Hi,
Yes I am under Windows, but your solution is great !
Thank you,
Titan
Yes I am under Windows, but your solution is great !
Thank you,
Titan
- Wed Mar 04, 2020 3:09 pm
- Forum: C++ Development
- Topic: wxMemoryDC::DrawText Keep AA with huge font size
- Replies: 2
- Views: 593
wxMemoryDC::DrawText Keep AA with huge font size
Hi, Is there a way to force AA when drawing on a wxBitmap with a wxMemoryDC no matter the font? Because when you approach (Depends on the face name wxFont::SetFaceName) a size of 150 (wxFont::SetPointSize) there is no more AA... The code I use: void wxString2wxImage ( const wxString & text, cons...