Jump to content

Setting the value of a checkbox


Gnat
 Share

Recommended Posts

Forgive my stupidity, and if the answer is in the manual or the forum anywhere, I guess I don't know how to search very well. Anyway.....

I am working on a script that writes and reads a lot of info from the registry, and some of that info is being created by a checkbox control. Is it possible to read a value from the registry (1 or 4) and have the checkbox unchecked or checked by default when the GUI is active?

Thanx in advance!

Link to comment
Share on other sites

  • Developers

Yes, no problem... you can set the CheckBox with GUICtrlSetState() like e.g:

$h_Beta = GUICtrlCreateCheckbox("Create Beta Definitions", 10, 50, 150, 20)
GUICtrlSetState(-1, $GUI_CHECKED)

Just add a test around the GUICtrlSetState() and make it dependant on the Registry value....

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...