-- Bug description --
The cursor of slider uicontrol is not displayed if the slider step is not an integer value.
Pierre
-- Scilab error message --
None
-- How to reproduce the bug --
// Figure creation
// =====================================================================
my_figure = figure( ...
"Position" , [30 50 600 400] , ...
"BackgroundColor" , [1 1 1]);
// Test 1
// =====================================================================
my_ini_value_1 = 5;
function update_text_1()
set(findobj("tag", "my_text_1"),"string",string(get(gcbo,"Value")));
endfunction
my_slider_1 = uicontrol( ...
"parent" , my_figure , ...
"style" , "slider" , ...
"Min" , 0 , ...
"Max" , 20 , ...
"Value" , my_ini_value_1 , ...
"SliderStep" , [1 2] , ...
"position" , [ 10 200 400 20 ] , ...
"callback" , "update_text_1()" );
my_text_1 = uicontrol( ...
"parent" , my_figure , ...
"position" , [500 200 60 20] , ...
"Style" , "text" , ...
"String" , string(my_ini_value_1) , ...
"tag" , "my_text_1" );
// Test 2
// =====================================================================
my_ini_value_2 = 1;
function update_text_2()
set(findobj("tag", "my_text_2"),"string",string(get(gcbo,"Value")));
endfunction
my_slider_2 = uicontrol( ...
"parent" , my_figure , ...
"style" , "slider" , ...
"Min" , 0 , ...
"Max" , 2 , ...
"Value" , my_ini_value_2 , ...
"SliderStep" , [0.1 0.2] , ...
"position" , [ 10 100 400 20 ] , ...
"callback" , "update_text_2()" );
my_text_2 = uicontrol( ...
"parent" , my_figure , ...
"position" , [500 100 60 20] , ...
"Style" , "text" , ...
"String" , string(my_ini_value_2) , ...
"tag" , "my_text_2" );