コード例 #1
0
ファイル: NumericControl.cpp プロジェクト: aleixpuig/PCL
void NumericEdit::SetScientificNotationTriggerExponent( int exp10 )
{
   m_sciTriggerExp = exp10;
   if ( m_autoEditWidth )
      AdjustEditWidth();
   UpdateControls();
}
コード例 #2
0
ファイル: NumericControl.cpp プロジェクト: aleixpuig/PCL
void NumericEdit::EnableScientificNotation( bool enable )
{
   m_scientific = enable;
   if ( m_autoEditWidth )
      AdjustEditWidth();
   UpdateControls();
}
コード例 #3
0
ファイル: NumericControl.cpp プロジェクト: aleixpuig/PCL
void NumericEdit::SetPrecision( int n )
{
   m_precision = unsigned( Range( n, 0, 15 ) );
   if ( m_autoEditWidth )
      AdjustEditWidth();
   UpdateControls();
}
コード例 #4
0
ファイル: NumericControl.cpp プロジェクト: aleixpuig/PCL
void NumericEdit::SetRange( double lr, double ur )
{
   m_lowerBound = Min( lr, ur );
   m_upperBound = Max( lr, ur );
   if ( m_autoEditWidth )
      AdjustEditWidth();
   SetValue( m_value );
}
コード例 #5
0
ファイル: NumericControl.cpp プロジェクト: aleixpuig/PCL
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 );
   }
}
コード例 #6
0
ファイル: NumericControl.cpp プロジェクト: morserover/PCL
void NumericEdit::SetReal( bool real )
{
   if ( real != isReal )
   {
      isReal = real;
      if ( !isReal )
         value = Round( value );
      if ( autoEditWidth )
         AdjustEditWidth();
      SetValue( value );
   }
}