Hi,
I have a menu with prev next buttons that allows selecting different groups
When a group is chosen from the menu and then saved as NKA everything works fine.
But if a group is chosen with the prev next buttons the NKA doesn't save the state of the menu.
function COMBINATION
$Combi_G1_Panel := %preset[321]
$Combi_G1_Panel_Back1 := %preset[327]
$temp := get_control_par(get_ui_id($Combi_G1_Panel), $CONTROL_PAR_VALUE)
$items := get_control_par(get_ui_id($Combi_G1_Panel), $CONTROL_PAR_NUM_ITEMS)
set_control_par(get_ui_id($Combi_G1_Panel), $CONTROL_PAR_VALUE, ($temp + $items - 1) mod $items)
$Combi_G1_Panel_Next1 := %preset[333]
$temp := get_control_par(get_ui_id($Combi_G1_Panel), $CONTROL_PAR_VALUE)
$items := get_control_par(get_ui_id($Combi_G1_Panel), $CONTROL_PAR_NUM_ITEMS)
set_control_par(get_ui_id($Combi_G1_Panel), $CONTROL_PAR_VALUE, ($temp + $items + 1) mod $items)
end function
on ui_control($Combi_G1_Panel)
%preset[321] := $Combi_G1_Panel
end on
on ui_control($Combi_G1_Panel_Back1)
%preset[327] := $Combi_G1_Panel_Back1
$temp := get_control_par(get_ui_id($Combi_G1_Panel), $CONTROL_PAR_VALUE)
$items := get_control_par(get_ui_id($Combi_G1_Panel), $CONTROL_PAR_NUM_ITEMS)
set_control_par(get_ui_id($Combi_G1_Panel), $CONTROL_PAR_VALUE, ($temp + $items - 1) mod $items)
$Combi_G1_Panel_Back1 := 0
end on
on ui_control($Combi_G1_Panel_Next1)
%preset[333] := $Combi_G1_Panel_Next1
$temp := get_control_par(get_ui_id($Combi_G1_Panel), $CONTROL_PAR_VALUE)
$items := get_control_par(get_ui_id($Combi_G1_Panel), $CONTROL_PAR_NUM_ITEMS)
set_control_par(get_ui_id($Combi_G1_Panel_Combi), $CONTROL_PAR_VALUE, ($temp + $items + 1) mod $items)
$Combi_G1_Panel_Next1 := 0
end on