Hi All,
Following code does not draw tick marks on slider control:
m_pSlider->setMinimum(-2147483648) ;
m_pSlider->setMaximum(2147483647) ;
m_pSlider->setTickInterval(33554432) ;//approximately 128 ticks...
m_pSlider->setMinimum(-2147483648) ;
m_pSlider->setMaximum(2147483647) ;
m_pSlider->setTickInterval(33554432) ;//approximately 128 ticks...
To copy to clipboard, switch view to plain text mode
But following works correctly:
m_pSlider->setMinimum(-2147483648) ;
m_pSlider->setMaximum(2147483646) ;
//Please note: 2147483647 is changed to 2147483646
m_pSlider->setTickInterval(33554432) ;//approximately 128 ticks...
m_pSlider->setMinimum(-2147483648) ;
m_pSlider->setMaximum(2147483646) ;
//Please note: 2147483647 is changed to 2147483646
m_pSlider->setTickInterval(33554432) ;//approximately 128 ticks...
To copy to clipboard, switch view to plain text mode
While "int" data type range is: -2147483648 to 2147483647...
Is any one other guy facing the same issue...
Any help would be appreciated.
Thanks in Advance...
Bookmarks