Home » Developing U++ » UppHub » Knob control
Re: Knob control [message #27963 is a reply to message #27959] |
Thu, 12 August 2010 10:11 |
jerson
Messages: 202 Registered: June 2010 Location: Bombay, India
|
Experienced Member |
|
|
koldo wrote on Thu, 12 August 2010 11:43 |
Two questions:
- How would you call the marks between major marks?
- How would you call the mark locking knob behavior?
|
I am thinking more in terms of the slider code I just modified. In that code, the ticks are marked for every minorticks and thick one for every majorticks. The increment is by minorticks.
The knob locks on to minortick increments. Majorticks is just a special case of minorticks as I see it.
This is the relevant part of that code
// draw gradations
for( int i = Min();
( m_nMajorTicks > 0 ) && ( i <= Max() ) ;
i += ( m_nMinorTicks == 0 ? m_nMajorTicks : m_nMinorTicks ) ) {
int nPos = SliderToClient( i );
if( ( m_nMajorTicks != 0 ) && ( i % m_nMajorTicks ) == 0 )
DrawTick( w, MAJOR, (HOVE)HoVe( HORZ, VERT ), nPos, i );
else if( ( m_nMinorTicks != 0 ) && ( i % m_nMinorTicks ) == 0 )
DrawTick( w, MINOR, (HOVE)HoVe( HORZ, VERT ), nPos, i );
}
Regards
|
|
|
|
|
Knob control
By: koldo on Wed, 11 August 2010 22:30
|
|
|
Re: Knob control
By: jerson on Thu, 12 August 2010 02:44
|
|
|
Re: Knob control
By: koldo on Thu, 12 August 2010 08:13
|
|
|
Re: Knob control
By: jerson on Thu, 12 August 2010 10:11
|
|
|
Re: Knob control
By: koldo on Thu, 12 August 2010 10:23
|
|
|
Re: Knob control
By: jerson on Thu, 12 August 2010 13:29
|
|
|
Re: Knob control
By: jerson on Fri, 13 August 2010 06:29
|
|
|
Re: Knob control
By: koldo on Sat, 14 August 2010 01:55
|
|
|
Re: Knob control
By: jerson on Sat, 14 August 2010 04:04
|
|
|
Re: Knob control
By: koldo on Sat, 14 August 2010 16:09
|
|
|
Re: Knob control
By: jerson on Sat, 14 August 2010 16:58
|
|
|
Re: Knob control
By: koldo on Sat, 14 August 2010 21:10
|
|
|
Re: Knob control
By: koldo on Tue, 17 August 2010 10:10
|
|
|
Re: Knob control
By: unodgs on Tue, 17 August 2010 10:36
|
|
|
Re: Knob control
By: koldo on Tue, 17 August 2010 16:01
|
|
|
Re: Knob control
|
|
|
Re: Knob control
By: koldo on Tue, 17 August 2010 21:17
|
|
|
Re: Knob control
By: jerson on Tue, 17 August 2010 14:16
|
|
|
Re: Knob control
By: jerson on Wed, 18 August 2010 03:30
|
|
|
Re: Knob control
By: koldo on Wed, 18 August 2010 08:15
|
|
|
Re: Knob control
By: jerson on Wed, 18 August 2010 15:00
|
|
|
Re: Knob control
By: koldo on Wed, 18 August 2010 17:01
|
|
|
Re: Knob control
By: jerson on Wed, 18 August 2010 17:09
|
|
|
Re: Knob control
By: koldo on Wed, 18 August 2010 22:27
|
|
|
Re: Knob control
By: koldo on Thu, 19 August 2010 23:17
|
|
|
Re: Knob control
By: jerson on Fri, 20 August 2010 03:22
|
Goto Forum:
Current Time: Fri May 10 15:13:05 CEST 2024
Total time taken to generate the page: 0.03267 seconds
|