Page 2 of 2

Re: check boxes do not reflect the settings

Posted: Fri Dec 20, 2013 6:16 pm
by Klaus
Hi keram,
Would that be OK to store all these settings in just 1 file or is it better to have separate data files
for each type of setting groups (e.g. 1 for categories, 1 for selected lines, 1 for fonts, size colour etc.)?
depends on how cleverly you will organize your data 8)


Best

Klaus

Re: check boxes do not reflect the settings

Posted: Sat Dec 21, 2013 5:51 pm
by keram
Hi Klaus,

When I use the code you posted on Fri Dec 20, 2013 10:05 pm (with Boolean values) then if the data text file is not there in the docs folder then the checkboxes on initial reopening of the stack do not correspond to what is shown in the data grid form. Once I click on the Save button they correspond to what is displayed. But if I use the code I fixed the problem with (if... else...) then even when there is no data file to start with it gets created and the check boxes always correspond to what is displayed - it seems to work better, also in the standalone.

keram

Re: check boxes do not reflect the settings

Posted: Sat Dec 21, 2013 7:24 pm
by Klaus
Hi keram,
keram wrote:When I use the code you posted on Fri Dec 20, 2013 10:05 pm (with Boolean values) then if the data text file is not there in the docs folder then the checkboxes on initial reopening of the stack do not correspond to what is shown in the data grid form.
yes, I thought i should leave the soltution to this fact up to you 8)

I ususally do NOTHNG in that case (prefs file not present = very frist start of app)
since I save my stacks in the state they should appear like in "virgin" state.
I ususally use the "savingstandalone" message to "clean up"/"initialize" all my controls!


Best

Klaus