On Thu, 20 Mar 2025 21:28:49 +0300 Black Jack wrote:
BJ> I have wxScrolledWindow that have two wxWindows children.
BJ>
BJ> I'd like to know is it allowed to Refresh() wxWindow from OnPaintEvent
BJ> another brother wxWindow?
It's not exactly disallowed, but it's definitely strange and unusual
because paint events may happen for many different reasons and it's not
clear at all why repainting one window should result in repainting another
one.
The usual situation is that both windows display some data (or something
using some data) and in this case they should be both refreshed when this
data changes.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
https://www.tt-solutions.com/