bool InfoBoxWindow::OnMouseUp(PixelPoint p) { dialog_timer.Cancel(); if (dragging) { const bool was_pressed = pressed; dragging = false; pressed = false; Invalidate(); ReleaseCapture(); if (was_pressed) { SetFocus(); if (GetDialogContent() != nullptr) /* delay the dialog, so double click detection works */ dialog_timer.Schedule(300); } return true; } return false; }
void InfoBoxManager::ShowDlgInfoBox(const int id) { if (GetDialogContent(id)) dlgInfoBoxAccessShowModal(XCSoarInterface::main_window, id); else SetupFocused(id); }
void InfoBoxWindow::ShowDialog() { force_draw_selector = true; dlgInfoBoxAccessShowModeless(id, GetDialogContent()); force_draw_selector = false; }