void NumericEdit::SetScientificNotationTriggerExponent( int exp10 ) { m_sciTriggerExp = exp10; if ( m_autoEditWidth ) AdjustEditWidth(); UpdateControls(); }
void NumericEdit::EnableScientificNotation( bool enable ) { m_scientific = enable; if ( m_autoEditWidth ) AdjustEditWidth(); UpdateControls(); }
void NumericEdit::SetPrecision( int n ) { m_precision = unsigned( Range( n, 0, 15 ) ); if ( m_autoEditWidth ) AdjustEditWidth(); UpdateControls(); }
void NumericEdit::SetRange( double lr, double ur ) { m_lowerBound = Min( lr, ur ); m_upperBound = Max( lr, ur ); if ( m_autoEditWidth ) AdjustEditWidth(); SetValue( m_value ); }
void NumericEdit::SetReal( bool real ) { if ( real != m_real ) { m_real = real; if ( !m_real ) m_value = Round( m_value ); if ( m_autoEditWidth ) AdjustEditWidth(); SetValue( m_value ); } }
void NumericEdit::SetReal( bool real ) { if ( real != isReal ) { isReal = real; if ( !isReal ) value = Round( value ); if ( autoEditWidth ) AdjustEditWidth(); SetValue( value ); } }