checkboxes unchecked as default

If you need help on how to use the program
Post Reply
mortenl
Posts: 9
Joined: 2009-11-07 13:05:05
Location: Denmark

checkboxes unchecked as default

Post by mortenl »

I like the Ant Catalogue program very much. But here is a question. I use the optional checkboxes to show which movies I have seen, so I would like the unchecked state to be default. Is this possible ?
Cheers
Morten
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

There are two ways you can do this. Either add the line

Code: Select all

setField(fieldChecked, 'False');
to the script that should set the checkbox unchecked when movie information are downloaded, or open your preferences file prefs.xml (from your Ant Movie Catalog installation folder) with a text editor, search for the DefaultMovie node (values for width and height might differ on your system)

Code: Select all

    <DefaultMovie WindowWidth="570" WindowHeight="560">
     <Values Number="0" Checked="True"/>
    </DefaultMovie>
and replace the Checked="True" with Checked="False". This effects general behaviour of AMC and now the checkbox will be unchecked whenever you add a new movie and for any script.
mortenl
Posts: 9
Joined: 2009-11-07 13:05:05
Location: Denmark

Post by mortenl »

Thank you, bad4u, This was just what I needed.
Morten
remyremy
Posts: 17
Joined: 2011-10-01 18:22:18

Post by remyremy »

Hi,
I tried that but the checkbox is still checked when I add a new movie with a script.
I have:

Code: Select all

<DefaultMovie WindowWidth="570" WindowHeight="560">
     <Values Number="0" Checked="False"/>
    </DefaultMovie>
But where should I add the following line in my script?
setField(fieldChecked, 'False');
(script: IMBD.ifs)

Thanks!
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

It should work by changing prefs.xml :??:
At least in versions 3.5.x
If you are using Windows Vista or 7, the prefs.xml file actually used may be in the virtualstore instead of being in program files folder:
go to c:\users\(your name)\appdata\local\virtualstore\program files\...
remyremy
Posts: 17
Joined: 2011-10-01 18:22:18

Post by remyremy »

Oups I forgot to precise, I'm using AMC Unofficial 3.8.1
Shouln't be the same?

My folder virtualstore is empty... not even program files folder...
i'm using Win7 and the hidden files/folders are displayed.

Any idea?
Thanks for you help
soulsnake
Posts: 756
Joined: 2011-03-14 15:42:20
Location: France

Post by soulsnake »

Oups I forgot to precise, I'm using AMC Unofficial 3.8.1
Shouln't be the same?
<DefaultMovie WindowWidth="570" WindowHeight="560">
<Values Number="0" Checked="True"/>
</DefaultMovie>
Sorry, this doesn't work with AMC Unofficial 3.8.1 because checkbox is always set to True when a new movie is added :??:.
This is now corrected in AMC Unofficial 3.8.2 ;).
remyremy
Posts: 17
Joined: 2011-10-01 18:22:18

Post by remyremy »

Indeed it works now! :)
Merci!
Post Reply