Search found 7 matches

by Titan
Wed Jul 01, 2020 5:37 pm
Forum: C++ Development
Topic: Overloaded methods wxPopupWindow::OnDismiss and wxPopupTransientWindow::ProcessLeftDown are not called
Replies: 8
Views: 238

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...
by Titan
Wed Jul 01, 2020 2:17 pm
Forum: C++ Development
Topic: Overloaded methods wxPopupWindow::OnDismiss and wxPopupTransientWindow::ProcessLeftDown are not called
Replies: 8
Views: 238

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?
by Titan
Tue Jun 30, 2020 8:22 pm
Forum: C++ Development
Topic: Overloaded methods wxPopupWindow::OnDismiss and wxPopupTransientWindow::ProcessLeftDown are not called
Replies: 8
Views: 238

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 Popup(...
by Titan
Tue Jun 30, 2020 5:32 pm
Forum: C++ Development
Topic: Overloaded methods wxPopupWindow::OnDismiss and wxPopupTransientWindow::ProcessLeftDown are not called
Replies: 8
Views: 238

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...
by Titan
Thu Mar 05, 2020 5:00 pm
Forum: C++ Development
Topic: wxMemoryDC::DrawText Keep AA with huge font size
Replies: 2
Views: 237

Re: wxMemoryDC::DrawText Keep AA with huge font size

Hi,

Yes I am under Windows, but your solution is great !

Thank you,

Titan
by Titan
Wed Mar 04, 2020 3:09 pm
Forum: C++ Development
Topic: wxMemoryDC::DrawText Keep AA with huge font size
Replies: 2
Views: 237

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, const wx...