U++ framework
Do not panic. Ask here before giving up.

Home » Developing U++ » UppHub » Knob control
Re: Knob control [message #28148 is a reply to message #28141] Wed, 18 August 2010 22:27 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3460
Registered: August 2008
Senior Veteran
jerson wrote on Wed, 18 August 2010 17:09

koldo wrote on Wed, 18 August 2010 20:31


I understand the algorithm but I do not know the reason. Why to have MajorTickinterval, MinorTickInterval and range instead of simply MajorTickinterval and MinorTickInterval?


Simply MajorTickInterval and MinorTickInterval should be fine. Range is nothing more than Min & Max and stays as it is.

An example. If I have Max = 100, MinorTickInterval = 5 and MajorTickInterval = 20, I will get minor marks at 5,10,15, major mark at 20, minor at 25,30,35, major at 40 and so on. Only reason I suggested this arrangement is it is easier to understand while designing the UI.


Oh. In fact the first version was like this, like in Meter.

If everything agrees I will implement it tomorrow.


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Single Threaded RS232
Next Topic: Docking - Saved Layout - Main window size?
Goto Forum:
  


Current Time: Tue Jul 07 05:58:55 GMT+2 2026

Total time taken to generate the page: 0.00879 seconds