| | |
| | | return; |
| | | } |
| | | |
| | | if(m_eSelectSide == eSelView) |
| | | if (m_eSelectSide == eSelView) { |
| | | return; |
| | | } |
| | | |
| | | m_eSelectSide = eSelView; |
| | | |
| | |
| | | { |
| | | UINT nID = GetFocus()->GetDlgCtrlID(); |
| | | |
| | | SetSideRadioExclusive(nID); |
| | | |
| | | UpdateRecipe(TRUE); |
| | | |
| | | ChangViewCdmSide(nID); |
| | |
| | | pApp->ChangeDimension(m_pVisionSetDlg, nDir); |
| | | #endif // HALCON_VISION_KEY |
| | | } |
| | | |
| | | void CViewMain_Recipe::SetSideRadioExclusive(UINT nSelId) |
| | | { |
| | | static const UINT kIds[] = { |
| | | IDC_RDO_SIDE_A_TOP, IDC_RDO_SIDE_B_TOP, IDC_RDO_SIDE_C_TOP, IDC_RDO_SIDE_D_TOP, |
| | | IDC_RDO_SIDE_A_BOT, IDC_RDO_SIDE_B_BOT, IDC_RDO_SIDE_C_BOT, IDC_RDO_SIDE_D_BOT, |
| | | IDC_RDO_SIDE_A_RIP, IDC_RDO_SIDE_B_RIP, IDC_RDO_SIDE_C_RIP, IDC_RDO_SIDE_D_RIP |
| | | }; |
| | | |
| | | for (UINT id : kIds) { |
| | | if (CButton* p = (CButton*)GetDlgItem(id)) { |
| | | p->SetCheck(id == nSelId ? 1 : 0); |
| | | } |
| | | } |
| | | } |