本文整理汇总了C++中EditVerifyFloat函数的典型用法代码示例。如果您正苦于以下问题:C++ EditVerifyFloat函数的具体用法?C++ EditVerifyFloat怎么用?C++ EditVerifyFloat使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了EditVerifyFloat函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UpdateFile
void DialogAFBody::OnEnChangeEditAnglesPitch() {
if( EditControlEnterHit( ( CEdit * ) GetDlgItem( IDC_EDIT_ANGLES_PITCH ) ) ) {
UpdateFile();
} else {
cm_angles_pitch = EditVerifyFloat( ( CEdit * ) GetDlgItem( IDC_EDIT_ANGLES_PITCH ) );
}
}
示例2: UpdateFile
void DialogAFConstraintSlider::OnEnChangeEditSliderAxisYaw() {
if ( EditControlEnterHit( (CEdit *) GetDlgItem( IDC_EDIT_SLIDER_AXIS_YAW ) ) ) {
UpdateFile();
}
else {
EditVerifyFloat( (CEdit *) GetDlgItem( IDC_EDIT_SLIDER_AXIS_YAW ) );
}
}
示例3: UpdateFile
void DialogAFConstraintSpring::OnEnChangeEditLimitMaxLength()
{
if (EditControlEnterHit((CEdit *) GetDlgItem(IDC_EDIT_SPRING_MAX_LENGTH))) {
UpdateFile();
} else {
EditVerifyFloat((CEdit *) GetDlgItem(IDC_EDIT_SPRING_MAX_LENGTH));
}
}
示例4: ValidateCollisionModelDensity
void DialogAFBody::OnEnChangeEditCmDensity() {
if( EditControlEnterHit( ( CEdit * ) GetDlgItem( IDC_EDIT_CM_DENSITY ) ) ) {
ValidateCollisionModelDensity( false );
UpdateFile();
} else {
cm_density = EditVerifyFloat( ( CEdit * ) GetDlgItem( IDC_EDIT_CM_DENSITY ), false );
}
}
示例5: UpdateFile
void DialogAFConstraintUniversal::OnEnChangeEditUniversalLimitYaw() {
if ( EditControlEnterHit( (CEdit *) GetDlgItem( IDC_EDIT_UNIVERSAL_LIMIT_YAW ) ) ) {
UpdateFile();
}
else {
m_limitYaw = EditVerifyFloat( (CEdit *) GetDlgItem( IDC_EDIT_UNIVERSAL_LIMIT_YAW ) );
}
}
示例6: ValidateCollisionModelWidth
void DialogAFBody::OnEnChangeEditCmWidth() {
if( EditControlEnterHit( ( CEdit * ) GetDlgItem( IDC_EDIT_CM_WIDTH ) ) ) {
ValidateCollisionModelWidth( false );
UpdateFile();
} else {
cm_width = EditVerifyFloat( ( CEdit * ) GetDlgItem( IDC_EDIT_CM_WIDTH ), false );
}
}
示例7: ValidateCollisionModelHeight
void DialogAFBody::OnEnChangeEditCmHeight() {
if( EditControlEnterHit( ( CEdit * ) GetDlgItem( IDC_EDIT_CM_HEIGHT ) ) ) {
ValidateCollisionModelHeight( false );
UpdateFile();
} else {
cm_height = EditVerifyFloat( ( CEdit * ) GetDlgItem( IDC_EDIT_CM_HEIGHT ), false );
}
}
示例8: UpdateFile
void DialogAFConstraint::OnEnChangeEditConstraintFriction() {
if ( EditControlEnterHit( (CEdit *) GetDlgItem( IDC_EDIT_CONSTRAINT_FRICTION ) ) ) {
UpdateFile();
}
else {
EditVerifyFloat( (CEdit *) GetDlgItem( IDC_EDIT_CONSTRAINT_FRICTION ), false );
}
}
示例9: UpdateFile
void DialogAFConstraintBallAndSocket::OnEnChangeEditAnchorY() {
if ( EditControlEnterHit( (CEdit *) GetDlgItem( IDC_EDIT_ANCHOR_Y ) ) ) {
UpdateFile();
}
else {
m_anchor_y = EditVerifyFloat( (CEdit *) GetDlgItem( IDC_EDIT_ANCHOR_Y ) );
}
}
示例10: UpdateFile
void DialogAFProperties::OnEnChangeEditConstraintfriction() {
if ( EditControlEnterHit( (CEdit *) GetDlgItem( IDC_EDIT_CONSTRAINTFRICTION ) ) ) {
UpdateFile();
if ( file && file->constraints.Num() && MessageBox( "Apply to all constraints ?", "Constraint Friction", MB_YESNO | MB_ICONQUESTION ) == IDYES ) {
for ( int i = 0; i < file->constraints.Num(); i++ ) {
file->constraints[i]->friction = file->defaultConstraintFriction;
}
constraintDlg->LoadFile( file );
}
}
else {
EditVerifyFloat( (CEdit *) GetDlgItem( IDC_EDIT_CONSTRAINTFRICTION ), false );
}
}