几何尺寸与公差论坛

 找回密码
 注册
查看: 180|回复: 2

PR256109 Feature location, if only form or default are selected, inpossible t

[复制链接]
发表于 2008-10-22 23:23:11 | 显示全部楼层 |阅读模式
Feature location, if only form or default are selected, inpossible to press create
<< Jean-Philippe Chadrin -- 07/24/08 14:16:04>>
Feature location, if only form or default are selected, inpossible to press create
Steps to reproduce:
Feature location for a circle
unselected auto
select Form or Default
Create button is greyed
<<END>>

<< Changes made by Neil Kay -- 08/29/08 09:50:10>>
Action: Paola Pallo to Yanhua Huang, Assigned: Paola Pallo to Yanhua Huang
<<END>>
<< Changes made by Don Ruggieri -- 07/24/08 08:27:56>>
Action: Tim Wernicke to Paola Pallo, Assigned: to Paola Pallo, Priority: to Medium
<<END>>
 楼主| 发表于 2008-10-22 23:23:35 | 显示全部楼层

回复: PR256109 Feature location, if only form or default are selected, inposs

ID_DIM_LOC_MAKEDEFAULT
DDX_Check(pDX, ID_DIM_LOC_MAKEDEFAULT, m_makedefault);

ID_DIM_LOC_FORM_TOL
DDX_Check(pDX, ID_DIM_LOC_FORM_TOL, m_form);

ON_BN_CLICKED(ID_DIM_LOC_FORM_TOL, SelectForm)

IDC_ALL_DIALOGS_FEATURE_CREATE

t:\V44B\MENU\DIMLOCDL.CPP

voidCDimLocDlg::CheckSelectedAxesToEnableCreate()

{ //102611 <05jun06 paola>: disable CREATE button if no AXES selected

CWnd * CreateWnd = (CWnd *) GetDlgItem(IDC_ALL_DIALOGS_FEATURE_CREATE);

BOOLToBeEnabled= TRUE;

if (m_pa || m_a || m_d || m_pr || m_r || m_x || m_y ||

m_z || m_auto || m_t || m_v || m_l ||

m_pd || m_rt || m_rs || m_s || m_h || m_form ||

m_g_only || m_r_only

|| m_makedefault || m_form) // PR256109

ToBeEnabled= TRUE;

else

ToBeEnabled= FALSE;

if(CreateWnd)

CreateWnd->EnableWindow(ToBeEnabled);

}

 楼主| 发表于 2008-10-22 23:37:14 | 显示全部楼层

回复: PR256109 Feature location, if only form or default are selected, inposs

voidCDimLocDlg::SelectForm()

{

UpdateData();

CWnd * gform = (CWnd *) GetDlgItem(IDC_GRAPH_ANAL_FORM);

CWnd * gboth = (CWnd *) GetDlgItem(IDC_GRAPH_ANAL_BOTH);

CWnd * tform = (CWnd *) GetDlgItem(IDC_TEXT_ANAL_FORM);

CWnd * tboth = (CWnd *) GetDlgItem(IDC_TEXT_ANAL_BOTH);

if ( gform )

gform->ShowWindow( m_form ? SW_SHOW : SW_HIDE );

if ( gboth )

gboth->ShowWindow( m_form ? SW_SHOW : SW_HIDE );

if ( tform )

tform->ShowWindow( m_form ? SW_SHOW : SW_HIDE );

if ( tboth )

tboth->ShowWindow( m_form ? SW_SHOW : SW_HIDE );

if ( !m_form && ( m_graphanal == ANALYSIS_FORM || m_graphanal == ANALYSIS_BOTH ) )

m_graphanal = ANALYSIS_ON;

if ( !m_form && ( m_textanal == ANALYSIS_FORM || m_textanal == ANALYSIS_BOTH ) )

m_textanal = ANALYSIS_ON;

UpdateData(FALSE);

// 104595 - make the Status Window update with the Current Dimension Dialog, if open

if( !m_initializing )

{

m_updatingStatusWindow = TRUE; // 104660

UpdateDialogCommand();

m_updatingStatusWindow = FALSE; // 104660

}

UpdateGridReportFlags(); // 104660

CheckSelectedAxesToEnableCreate(); // PR256109

}

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 05:56 , Processed in 0.041833 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表