Example #1
0
void NumericEdit::SetScientificNotationTriggerExponent( int exp10 )
{
   m_sciTriggerExp = exp10;
   if ( m_autoEditWidth )
      AdjustEditWidth();
   UpdateControls();
}
Example #2
0
void NumericEdit::EnableScientificNotation( bool enable )
{
   m_scientific = enable;
   if ( m_autoEditWidth )
      AdjustEditWidth();
   UpdateControls();
}
Example #3
0
void NumericEdit::SetPrecision( int n )
{
   m_precision = unsigned( Range( n, 0, 15 ) );
   if ( m_autoEditWidth )
      AdjustEditWidth();
   UpdateControls();
}
Example #4
0
void NumericEdit::SetRange( double lr, double ur )
{
   m_lowerBound = Min( lr, ur );
   m_upperBound = Max( lr, ur );
   if ( m_autoEditWidth )
      AdjustEditWidth();
   SetValue( m_value );
}
Example #5
0
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 );
   }
}
Example #6
0
void NumericEdit::SetReal( bool real )
{
   if ( real != isReal )
   {
      isReal = real;
      if ( !isReal )
         value = Round( value );
      if ( autoEditWidth )
         AdjustEditWidth();
      SetValue( value );
   }
}