MDI code example - not fully working under Linux
MDI code example - not fully working under Linux
Hi, I'm trying to start writing my first ever cross platform GUI and downloaded wxwidgets 3.1.3 - for use on Windows 10 and Linux (Centos .
I built the mdi.cpp example program provided and it works fine under windows - but under linux the drawing events inside the code here...
// This implements a tiny doodling program! Drag the mouse using the left
// button.
void MyCanvas::OnEvent(wxMouseEvent& event)
don't get rendered to the screen under the Linux build.
As this example has been around for a long time - it seems unlikely it doesn't work! Any suggestions would be appreciated!
Thanks.
I built the mdi.cpp example program provided and it works fine under windows - but under linux the drawing events inside the code here...
// This implements a tiny doodling program! Drag the mouse using the left
// button.
void MyCanvas::OnEvent(wxMouseEvent& event)
don't get rendered to the screen under the Linux build.
As this example has been around for a long time - it seems unlikely it doesn't work! Any suggestions would be appreciated!
Thanks.
Re: MDI code example - not fully working under Linux
Hi,
I've not (yet) tested the sample here, but: why use MDI nowadays?
For a less-antique near equivalent, have a look at the 'aui' sample.
Regards,
David
I've not (yet) tested the sample here, but: why use MDI nowadays?
For a less-antique near equivalent, have a look at the 'aui' sample.
Regards,
David
Re: MDI code example - not fully working under Linux
Thanks for the suggestion - I've looked at that aui example and it looks pretty impressive!
If you do get round to looking at the mdi problem I was having it would be good to know if you can replicate the issue.
Regards,
Paul
If you do get round to looking at the mdi problem I was having it would be good to know if you can replicate the issue.
Regards,
Paul
Re: MDI code example - not fully working under Linux
IIUC what you were testing the (draw-on-the-screen facility) it works for me, in both GTK+2 and +3 builds of wx3.0.5.
Which wx version did you use?
Which wx version did you use?
Re: MDI code example - not fully working under Linux
Hi,
Couple more questions:
1. What is an exact GTK+ version?
2. What OS/WM do you use?
3. Are you using any theme?
Thank you.
Couple more questions:
1. What is an exact GTK+ version?
2. What OS/WM do you use?
3. Are you using any theme?
Thank you.
Re: MDI code example - not fully working under Linux
Yes it is the draw on screen facility...
wxwidgets 3.1.3
Centos 8
I tried compiling wxwidgets with gtk2 and gtk3
I'm not sure about the theme... none that I am aware of! Sorry I'm used to Windows programming.
wxwidgets 3.1.3
Centos 8
I tried compiling wxwidgets with gtk2 and gtk3
I'm not sure about the theme... none that I am aware of! Sorry I'm used to Windows programming.
Re: MDI code example - not fully working under Linux
Retesting with 3.1.3, it still works. (debian buster, LXQT).
.
However I did notice that the writing doesn't persist: add another child window, or switch to a different program and back, and the lines have disappeared. That's because it's painting on a wxClientDC, not a wxPaintDC in a paintevent handler. Perhaps your DE is somehow causing instant refreshes...
.
However I did notice that the writing doesn't persist: add another child window, or switch to a different program and back, and the lines have disappeared. That's because it's painting on a wxClientDC, not a wxPaintDC in a paintevent handler. Perhaps your DE is somehow causing instant refreshes...
Re: MDI code example - not fully working under Linux
Ok. Thanks very much for trying that. I'll stop worrying about it! There is plenty more for me to get my head around!
I appreciate the effort you have gone to.
Cheers, Paul
I appreciate the effort you have gone to.
Cheers, Paul
Re: MDI code example - not fully working under Linux
Hi,
You probably using Wayland and not the X Server for the backend...
Thank you.
You probably using Wayland and not the X Server for the backend...
Thank you.
Re: MDI code example - not fully working under Linux
Yes! That did it - thanks. I've never heard of this Weyland thing before...