FLUID: make sure that dialogs are visible for snapshots

This commit is contained in:
Matthias Melcher 2024-10-17 14:32:30 +02:00
parent c454930966
commit acf3037ae8

View File

@ -437,7 +437,8 @@ void run_autodoc(const Fl_String &target_dir) {
// explain widgets types an their dnd option // explain widgets types an their dnd option
// explain menu arrays // explain menu arrays
// list exceptions (subwindow, scroll) // list exceptions (subwindow, scroll)
if (!widgetbin_panel) make_widgetbin(); Fl::wait(0.2);
Fl::flush();
fl_snapshot((target_dir + "widgetbin_panel.png").c_str(), widgetbin_panel, win_margin, win_blend); fl_snapshot((target_dir + "widgetbin_panel.png").c_str(), widgetbin_panel, win_margin, win_blend);
// ---- code view // ---- code view
@ -446,8 +447,13 @@ void run_autodoc(const Fl_String &target_dir) {
// show various tabs // show various tabs
// explain find and locate // explain find and locate
if (!codeview_panel) make_codeview(); if (!codeview_panel) make_codeview();
update_codeview_cb(NULL, NULL); codeview_panel->show();
Fl::wait(0.2);
Fl::flush();
update_codeview_cb(NULL, NULL); // must be visible on screen for this to work
cv_tab->value(cv_source_tab); cv_tab->value(cv_source_tab);
codeview_panel->redraw();
Fl::flush();
fl_snapshot((target_dir + "codeview_panel.png").c_str(), codeview_panel, win_margin, win_blend); fl_snapshot((target_dir + "codeview_panel.png").c_str(), codeview_panel, win_margin, win_blend);
fl_snapshot((target_dir + "cv_find_row.png").c_str(), cv_find_row, row_margin, row_blend); fl_snapshot((target_dir + "cv_find_row.png").c_str(), cv_find_row, row_margin, row_blend);
fl_snapshot((target_dir + "cv_settings_row.png").c_str(), cv_settings_row, row_margin, row_blend); fl_snapshot((target_dir + "cv_settings_row.png").c_str(), cv_settings_row, row_margin, row_blend);