几何尺寸与公差论坛

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

PR 253380 The dialog for dimmensions without feature size is out of screen if

[复制链接]
发表于 2009-4-1 20:05:45 | 显示全部楼层 |阅读模式
The dialog for dimmensions without feature size is out of screen if there is a lot of features in this condition

<< Antonio Cuenca  --  02/19/08  16:29:17>>
The dialog that advices about dimmensions whith no feature becames out of screen if there is a lot of dimensions without features.

Steps to reproduce:
Create a partprogram with at leas  100 points, then dimmension it and then delete the points. I this way, the dimmension becames without feature. Save the partprogram and then open again.

Results:
The dialog showing the dimmensions without feature is oversized and out of screen. Take a look to the attached picture.

Expected Results:
No oversized and line format message.
<<END>>

<< Changes made by Yanhua Huang -- 03/28/09  11:14:11>>
Action:  CMM Group to Yanhua Huang
<<END>>

<< Don Turcotte  --  09/10/08  16:24:38>>
Fixed by limiting the line length to 100 characters, otherwise get multiple lines.  Attached test program.

Files inserted to server
------------------------
V44B\MENU\PCDLRN.CPP
<<END>>

<< Changes made by Don Turcotte -- 09/10/08  16:24:50>>
Action:  Don Turcotte to CMM Group, Status:  OPEN to REVIEW
<<END>>

<< Changes made by Tim Wernicke -- 02/19/08  10:27:39>>
Action:  Tim Wernicke to Don Turcotte, Assigned:   to Don Turcotte, Priority:  to High
<<END>>
 楼主| 发表于 2009-4-1 20:21:28 | 显示全部楼层

回复: PR 253380 The dialog for dimmensions without feature size is out of scr

int base_count = str.GetLength(); // PR253380
    while(m_pPartProgram->m_DimensionIdsWithNoFeature.GetCount())
    {
      str+=m_pPartProgram->m_DimensionIdsWithNoFeature.RemoveHead();
      if(m_pPartProgram->m_DimensionIdsWithNoFeature.GetCount())
        str+=_T(",");  // add a separator since there are more than one bad ID.

      // PR253380 - don't let this line get too long
      if( str.GetLength() - base_count > 100 )
      {
        str +=_T("\n");
        base_count = str.GetLength();
      }
    }
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-22 22:36 , Processed in 0.038058 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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