Search found 8 matches

by ongledda
Mon May 25, 2020 5:33 am
Forum: C++ Development
Topic: wxPanel draws over the scrollbar of wxScrolledWindow
Replies: 15
Views: 1435

Re: wxPanel draws over the scrollbar of wxScrolledWindow

Hello, I do not understand why it would override the size of the canvas. As you have suggested, I tried to follow the syntax used to create the buttons. //wxTextCtrl *myText = new wxTextCtrl(this, wxID_ANY, "This is a text control", wxPoint(300,250), wxSize(150,24)); //(void) new wxTextCtrl(this, wx...
by ongledda
Mon May 25, 2020 1:26 am
Forum: C++ Development
Topic: wxPanel draws over the scrollbar of wxScrolledWindow
Replies: 15
Views: 1435

Re: wxPanel draws over the scrollbar of wxScrolledWindow

Hello,
No, I did not make any changes on the library itself.
This is the version I used: https://github.com/wxWidgets/wxWidgets/ ... tag/v3.1.3

Did I answer your question correctly?

Thank you.
by ongledda
Fri May 22, 2020 8:34 am
Forum: C++ Development
Topic: wxPanel draws over the scrollbar of wxScrolledWindow
Replies: 15
Views: 1435

Re: wxPanel draws over the scrollbar of wxScrolledWindow

Hello everyone, I ran into a similar problem again, but this time it's the wxTextCtrl's highlight that is overlapping the scroll bars. I also replicated the issue in the "scroll" sample code of wxWidgets 3.1.3. I just added a wxTextCtrl in MyCanvas class. MyCanvas::MyCanvas(wxWindow *parent) : wxScr...
by ongledda
Fri Sep 14, 2018 10:31 am
Forum: C++ Development
Topic: wxPanel draws over the scrollbar of wxScrolledWindow
Replies: 15
Views: 1435

Re: wxPanel draws over the scrollbar of wxScrolledWindow

Your answer worked!

Thank you very much for the help. :D
by ongledda
Fri Sep 14, 2018 10:17 am
Forum: C++ Development
Topic: wxPanel draws over the scrollbar of wxScrolledWindow
Replies: 15
Views: 1435

Re: wxPanel draws over the scrollbar of wxScrolledWindow

Disabling the enter/leave handlers and drawing the panel in the paint event using wxPaintDC is working fine, it does not overlap the scrollbar.

But, I'd like to redraw the panel on mouse enter or leave, without overlapping the scrollbar.
by ongledda
Fri Sep 14, 2018 9:52 am
Forum: C++ Development
Topic: wxPanel draws over the scrollbar of wxScrolledWindow
Replies: 15
Views: 1435

Re: wxPanel draws over the scrollbar of wxScrolledWindow

Don't use wxClientDC in a paint event handler, use wxPaintDC. I tried to use wxPaintDC in the paint event handler, but it still happens. class MyButton : public wxWindow { public: MyButton(wxWindow *parent, wxPoint pos) : wxWindow(parent, wxID_ANY, pos, wxSize(100, 50)) { Connect(wxEVT_PAINT, wxPai...
by ongledda
Fri Sep 14, 2018 9:37 am
Forum: C++ Development
Topic: wxPanel draws over the scrollbar of wxScrolledWindow
Replies: 15
Views: 1435

Re: wxPanel draws over the scrollbar of wxScrolledWindow

Yes, it still happens.

I do not know if I'm missing something on wxPanel drawing or not.
This issue does not seem to happen on windows.

[img]
test_code.png
test_code.png (34.26 KiB) Viewed 1317 times
[/img]
by ongledda
Fri Sep 14, 2018 7:39 am
Forum: C++ Development
Topic: wxPanel draws over the scrollbar of wxScrolledWindow
Replies: 15
Views: 1435

wxPanel draws over the scrollbar of wxScrolledWindow

I have a wxPanel that is being redrawn when mouse pointer has entered on it. This panel is in a wxScrollWindow. The problem is when the wxPanel is re-drawn, while the scrollbar of the wxScrollBarWindow is on top of it, the wxPanel will be drawn over the scrollbar. This seems to happen only on MacOS....