mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-06 11:47:58 -05:00
LabeledStaticBox's paint handler on Windows replaces wxStaticBox::OnPaint, which also removed wx's clipping of the controls inside the box. In the calibration dialogs those controls are siblings of the box, so the box painted over them until they were hovered. PickDC now clips the paint DC to MSWGetRegionWithoutChildren(), converted from screen to window coordinates, which is the same region wx's own paint uses. A new Windows test checks the clip region after a repaint, and again after the dialog moves and a hidden control is shown. The orca-wxwidgets painting reference now describes the clipping.
OrcaSlicer tests
Building, running and writing tests is documented on the wiki, under How to Test.
Two files here rather than there, because coding agents only read what is in the repository: