本文整理匯總了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 );
}
}