| | |
| | | |
| | | void CAxisSettingsDlg::AdjustLabelFont(CBLLabel& label) |
| | | { |
| | | if (label.m_hWnd == nullptr) { |
| | | return; |
| | | } |
| | | |
| | | // 获取控件的矩形区域 |
| | | CRect rect; |
| | | label.GetClientRect(&rect); |
| | |
| | | RecipeManager& recipeManager = RecipeManager::getInstance(); |
| | | if (m_strRecipeName.IsEmpty() || !recipeManager.loadRecipe(std::string(CT2A(m_strRecipeName)))) { |
| | | AfxMessageBox(_T("加载配方失败!")); |
| | | recipeManager.saveRecipe(std::string(CT2A(m_strRecipeName))); |
| | | return; |
| | | } |
| | | |
| | |
| | | handleAxisOperation(AxisOperationType::POSITION_1, true); |
| | | Sleep(200); |
| | | handleAxisOperation(AxisOperationType::POSITION_1, false); |
| | | m_pBlBtns[BTN_POINT1]->Flash(1000); |
| | | m_pBlBtns[BTN_POINT1]->Flash(500); |
| | | } |
| | | |
| | | void CAxisSettingsDlg::OnBnClickedButtonAxisAnchorPoint2() |
| | |
| | | if (m_nBtnsFlashState6 & 0x01) { |
| | | // 06.0 |
| | | if (!m_pBlBtns[BTN_JOG_OPR]->IsFlash()) { |
| | | m_pBlBtns[BTN_JOG_OPR]->Flash(1000); |
| | | m_pBlBtns[BTN_JOG_OPR]->Flash(500); |
| | | } |
| | | } |
| | | else if (m_nBtnsFlashState8 & 0x01) { |
| | |
| | | |
| | | if (m_nBtnsFlashState6 & v) { |
| | | if (!m_pBlBtns[BTN_POINT1]->IsFlash()) { |
| | | m_pBlBtns[BTN_POINT1]->Flash(1000); |
| | | m_pBlBtns[BTN_POINT1]->Flash(500); |
| | | } |
| | | } |
| | | else if (m_nBtnsFlashState8 & v) { |
| | |
| | | |
| | | if (m_nBtnsFlashState6 & (v << 1)) { |
| | | if (!m_pBlBtns[BTN_POINT2]->IsFlash()) { |
| | | m_pBlBtns[BTN_POINT2]->Flash(1000); |
| | | m_pBlBtns[BTN_POINT2]->Flash(500); |
| | | } |
| | | } |
| | | else if (m_nBtnsFlashState8 & (v << 1)) { |
| | |
| | | |
| | | if (m_nBtnsFlashState6 & (v << 2)) { |
| | | if (!m_pBlBtns[BTN_POINT3]->IsFlash()) { |
| | | m_pBlBtns[BTN_POINT3]->Flash(1000); |
| | | m_pBlBtns[BTN_POINT3]->Flash(500); |
| | | } |
| | | } |
| | | else if (m_nBtnsFlashState8 & (v << 2)) { |
| | |
| | | |
| | | if (m_nBtnsFlashState6 & (v << 3)) { |
| | | if (!m_pBlBtns[BTN_POINT4]->IsFlash()) { |
| | | m_pBlBtns[BTN_POINT4]->Flash(1000); |
| | | m_pBlBtns[BTN_POINT4]->Flash(500); |
| | | } |
| | | } |
| | | else if (m_nBtnsFlashState8 & (v << 3)) { |
| | |
| | | |
| | | if (m_nBtnsFlashState6 & (v << 4)) { |
| | | if (!m_pBlBtns[BTN_POINT5]->IsFlash()) { |
| | | m_pBlBtns[BTN_POINT5]->Flash(1000); |
| | | m_pBlBtns[BTN_POINT5]->Flash(500); |
| | | } |
| | | } |
| | | else if (m_nBtnsFlashState8 & (v << 4)) { |