View Full Version : Odd FlatStyle LoopIndex behavior

February 5th, 2010, 02:29 AM
I am using an Elk M1 with 3 thermostats. The 3 thermostats work fine with the default flatstyle ccf.

However, when I change the starting index for the HVAC child loop from 1 to 2, only thermostat 2 is displayed. If I change the starting index to 0, only thermostats 1 and 3 are displayed(on seperate prev/next frames). If I change it to 3 then no thermostats are displayed.

Also, if I try to set it up as a 2x2 child loop and keep the starting index as 1, only thermostats 1 and 2 appear. What is going on here? Am I missing something? Thanks!

Rob H
February 5th, 2010, 04:37 AM
FlatStyle uses a ListManager object to update DM controls, the starting index for ListManager objects is always 1. If you want do change the number of thermostats to 4 you need to define a function in your .lua file as follows:

function DM.Config.ThermostatsPerPage()
return 4