Jump to content
Sign in to follow this  
techguy86

TreeView Problems with checkboxes style

Recommended Posts

Has anyone fixed the TreeView with $TVSCHECKBOXES. Right now I am stuck with updating the status as it happens. I would rather wait until the user has selected all which they want selected, press view, and then have AutoIt read the state of every item on the list for example:

#include <GUIConstants.au3>

GUICreate("Title Goes Here", 225, 150)

$points = GUICtrlCreateTreeView(25, 35, 60, 100, $TVS_CHECKBOXES)

$whole0 = GUICtrlCreateTreeViewItem("0", $points)

$half0 = GUICtrlCreateTreeViewItem("0.5", $points)

$view = GUICtrlCreateButton ("&View", 100 ,35, 100, 25)

GUISetState ()

While 1

$msg = GUIGetMsg()

Select

Case $msg = $view

....read if $whole0 = 0 for not checked or 1 for checked to a var

....read if $half = 0 for not checked or 1 for checked to a dif var

EndSelect

WEnd

GUIDelete()

Exit


My Programs:Dissolve (Updated 5-30-06)Credit Card Validator (Not created as of yet)Master Lock Combination Cracker (Updated 7-08-07)Go Siteseeing:My Website: - Click HereCyberZeroCool's Website - Click Here

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...