Posted: 31 Dec 2015, 10:13
tabs are great!
One little thing i could observe that could be "risky" it seems is that the recall of variables seems linked to the label "quoted strings". if same name is used on several places it could lead to problems. for exemple i made a "listBox" tab where i had a "Show Header" bool setting and it was affecting the ability to show header of the module itself, on creation, the field disapeared on
the module usual layout eye tab "show header" setting. Or I made several tabs "fader", "encoder" ect tabs with their own variables but same labeled "encoder speed" and it seems variables could add together on init or interfere somehow. We can easely choose unique label, but felt it would maybe more "secured" to have this dealed internally, suppose with a unique id or tag added, maybe linked to tab name or something if not too complex..
One other idea would be to make individual per tab snapshots store/recall possible. Did a custom function for this but i got to manually redefine and store/recall a vector pair of pointer adress and datatype wich i felt could be done more easily "internally" as we already provide all infos in onCreateSetting, but maybe it's too much specific.. (like recall a 'layout tab" preset without recalling ie a fuctionality behaviour tab). just an idea..
One little thing i could observe that could be "risky" it seems is that the recall of variables seems linked to the label "quoted strings". if same name is used on several places it could lead to problems. for exemple i made a "listBox" tab where i had a "Show Header" bool setting and it was affecting the ability to show header of the module itself, on creation, the field disapeared on
the module usual layout eye tab "show header" setting. Or I made several tabs "fader", "encoder" ect tabs with their own variables but same labeled "encoder speed" and it seems variables could add together on init or interfere somehow. We can easely choose unique label, but felt it would maybe more "secured" to have this dealed internally, suppose with a unique id or tag added, maybe linked to tab name or something if not too complex..
One other idea would be to make individual per tab snapshots store/recall possible. Did a custom function for this but i got to manually redefine and store/recall a vector pair of pointer adress and datatype wich i felt could be done more easily "internally" as we already provide all infos in onCreateSetting, but maybe it's too much specific.. (like recall a 'layout tab" preset without recalling ie a fuctionality behaviour tab). just an idea..