|
Resizing of Sizers containing a Chart Director chart |
Posted by Sean on Jan-09-2014 23:25 |
|
My wxpython GUI contains various panels and several of them contain Chart Director bar charts. Each panel is arranged using nested sizers. When the GUI is launched, the charts display just fine, but when a user adjusts the size of the window the chart becomes very distorted and even overlaps with itself and other items within the same sizer. The chart becomes entirely unreadable very ugly looking. It appears as though when the window's size is decreased and sizers begin to overlap, the chart does not know how to retain its size or resize itself to fit within the newly sized window. What I am looking for is if there is anyway to "freeze" the chart so it is unable to move? Or has anyone else encountered a problem similar to this?
I am saving the chart as a StaticBitMap. |
Re: Resizing of Sizers containing a Chart Director chart |
Posted by Peter Kwan on Jan-10-2014 04:42 |
|
Hi Sean,
I think in your case, it is the wxWidgets that are moving or resizing (you may have put the chart image into a wxWidget). The chart itself is just an image. Like any other image (such as an image created by your digital camera), it would not move by itself. So I think in your case, instead of focusing on freezing the chart image, you would need to freeze or control the wxWidget that displays the chart image.
Regards
Peter Kwan |
|