繁體 简体

Q&A: Controlling the maximium range value when programming a slider

Question
I would like to control the range of my slider wheel in my CCL program code. I also want to set the number of slider increments, so I am trying to use the “realfix” option in the graphwin_sliderassign(gsa) command. But I found that OSLO chooses a different value for the maximum range depending on what I choose my initial value to be. Why is this?

Synopsis
Controlling the maximum range value when programming a slider

Solution
The graphwin_sliderassign(gsa) command is used to set up the maximum_slider_value, the minimum_slider_value and the initial_slider_value. When the value_type option is set to “realfix”, the user is also able to define the number of increments (count_or_column) the slider moves from maximum_slider_value to minimum_slider_value. This works well when the initial_slider_value is

30051 新竹市經國路二段160號9F-8
Tel : 03-5359299  Fax: 03-5358908
統編: 28521213

光學軟體設計領導者

© 2018 All rights reserved. Setup by Eidea