Custom control : fixed re-scaling for MSW

This commit is contained in:
YuSanka 2020-10-23 19:17:10 +02:00 committed by Oleksandra Yushchenko
parent 1b3c288b35
commit e93e80166b
6 changed files with 173 additions and 79 deletions

View file

@ -677,6 +677,9 @@ void TabPrinter::msw_rescale()
for (auto page : pages)
page->msw_rescale();
if (m_reset_to_filament_color)
m_reset_to_filament_color->msw_rescale();
Layout();
}
@ -951,6 +954,9 @@ void Tab::msw_rescale()
for (ScalableBitmap& bmp : m_mode_bitmap_cache)
bmp.msw_rescale();
if (m_detach_preset_btn)
m_detach_preset_btn->msw_rescale();
// rescale icons for tree_ctrl
for (ScalableBitmap& bmp : m_scaled_icons_list)
bmp.msw_rescale();