Hi Joost
I would recommend using the wxWindow which is found in the wxwidgets.h header 
file and defined in the wxwidgets_app.cpp file. I haven't ever really looked at 
the wxPLplotstream or wxPLplotwindows files. As you say they are not used by 
the examples. If you wish to create your own wxWidgets app which includes 
plplot plots then I would suggest you create a plstream using the wxWidgets 
driver and pass in a wxMemoryDC or wxImage (for AGG backend) and then blt this 
onto a screen DC for on screen display. That's what I do anyway.
 
Regarding the "...exe has stopped working error" This type of error has been 
reported before and I believe this is caused by wxWidgets closing the 
application when the last GUI window is closed, which means it never returns to 
the console window and causes various problems. The answer would be to run the 
GUI window in a separate thread and I started to implement this, but found that 
I couldn't make Plplot thread-safe enough to get this to work. In my own code I 
just create a wxWidgets application from the start so it's not a problem there.
 
Phil
 
 
I would like to also ask: which wxPLplotwindow should normally be referred to 
when creating your own wxwidgets plplot apps?
I noticed that updates to the wxWidgets driver are not common, but there are 
actually two versions of the wxPLplotwindow class.There is one located on 
trunk/bindings/wxwidgets/wxplplotwindow.h and .cpp, and one in 
trunk/drivers/wxwidgets.h and wxwidgets_app.cpp. The latter has seemingly much 
more functionality (and uses more derived classes) and is capable of using 
multiple display drivers (agg, dc, gc). Should the class or all classes from 
wxwidgets.h actually be moved to become a binding? Or am I now completely 
misunderstanding the procedure...
Regards, Joost

From: [email protected]
To: [email protected]
Date: Wed, 11 Dec 2013 15:12:26 +1100
Subject: [Plplot-devel] wxWidgets-3.0.0 demo display incorrect




Hello,
1.In the wxPLplotdemo example, the bottom half of the plot display is empty 
(see http://img197.imageshack.us/img197/5332/oqdv.jpg). Having seen this in 
wxWidgets before I expect a sizer issue.When resizing the screen, it becomes 
worse (only the original visible size will stay visible, but the plot is moving 
with the size of the window). This does not occur when running examples with 
"-dev wxwidgets", in that case everything is fine.Running wxwidgets-3.0.0, 
Windows 7.
2.When using "x00.exe -dev wxwidgets", and then simply closing the window, a 
popup "x00.exe has stopped working" occurs. Unfortunately my Visual Studio is 
not set up to automatically direct me to the source code to debug. This happens 
with any example.
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to