几何尺寸与公差论坛

 找回密码
 注册
查看: 105|回复: 1

PR 249368 When I set 24 colors in the "edit dimension color&quot

[复制链接]
发表于 2009-5-14 21:22:12 | 显示全部楼层 |阅读模式
When I set 24 colors in the "edit dimension color" diologue and save as default, the next PP I open I get many of the zones just colored black!!, very repeatable.
<< Mick Walters  --  07/26/07  12:31:13>>
When I set 24 colors in the "edit dimension color" diologue and save as default, the next PP I open I get many of the zones just colored black!!, very repeatable.
Steps to reproduce:
try it, set 24 zones and select the color from the sphere, then apply the colors and check them, they should look good, then save as default and save your PP.
Results:
when you make a new PP take a look at your zones in the diologue again, you will then see what I see (see attached bitmap)
Expected Results:
should maintain what is set.
<<END>>

<< Paola Pallo  --  07/30/07  13:35:12>>
Fixed and uploaded. For review:
V42\INCLUDE\Dimcolors.h
V42\MENU\DIMCOLORS.CPP
V43B\INCLUDE\Dimcolors.h
V43B\MENU\Dimcolors.cpp
<<END>>
<< Changes made by Paola Pallo -- 07/30/07  13:35:39>>
Action:  Paola Pallo to David Petrizze, Status:  OPEN to REVIEW
<<END>>
<< Paola Pallo  --  07/27/07  17:53:41>>
PC-DMIS is correctly managing 20 zones max, and talking with Mick and Alessandro we agreed that it could be acceptable.
In fact I had verified that enabling the ability to accept any number 'on the fly' is quite complicated ( and not completely safe) and probably it  is neither  worth since normally they use 5 or 9 zones.
As a compromise  I 'm adding  a check to avoid the input of not valid number ( >20 ) .
On the way I fixed also a graphic issue ( the color wheel is not correctly centered ) : I will upload on Monday
<<END>>
<< Changes made by Tim Wernicke -- 07/26/07  09:47:19>>
Priority:  to Critical
<<END>>
 楼主| 发表于 2009-5-14 21:31:07 | 显示全部楼层

回复: PR 249368 When I set 24 colors in the &quot;edit dimension color&am

void CDimColorsDlg::OnChangeNumZones()
{
  CString str;
  CWnd * pWnd = GetDlgItem(IDC_DIM_COLORS_NUM_ZONES);
  pWnd->GetWindowText(str);
  int val;
  swscanf (str,_T("%d"), &val);
  if (val > 20)
  {
    // 249368: InitINISettings()creates by default exactly 20 "DimensionColorTol" entries, so we check to avoid larger input
    CString ErrorMsg;
    ErrorMsg.LoadString(IDS_MBT_INVALID_INPUT);
    PCDMessageBox(m_pPartProgram, ErrorMsg);
    if (global_NumDimTolZones - 3 > 2)
      str.Format(_T("%d"),(global_NumDimTolZones-3)/2);
    else
      str.Format(_T("%d"),global_NumDimTolZones-3);
    pWnd->SetWindowText(str);
  }
}
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-22 18:15 , Processed in 0.036025 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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