check boxes do not reflect the settings

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: check boxes do not reflect the settings

Post by Klaus » Fri Dec 20, 2013 6:16 pm

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

keram
Posts: 340
Joined: Fri Nov 08, 2013 4:22 am

Re: check boxes do not reflect the settings

Post by keram » Sat Dec 21, 2013 5:51 pm

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
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: check boxes do not reflect the settings

Post by Klaus » Sat Dec 21, 2013 7:24 pm

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

Post Reply