Jump to content
Sign in to follow this  
thawee

_GUICtrlTreeView_SetSelected - Not Activating :(

Recommended Posts

thawee

removed

Edited by thawee

Share this post


Link to post
Share on other sites
Melba23

thawee,

I have no idea why its not visibly activating the check box.

Because _GUICtrlTreeView_SetSelected does not check the checkbox - for that you need _GUICtrlTreeView_SetChecked. :oops:

Just add this line:

_GUICtrlTreeView_SetSelected($hTreeView, $hItem[$iRand])
_GUICtrlTreeView_SetChecked ($hTreeView, $hItem[$iRand]) ; <<<<<<<<<<<<<<<<<

And your checkbox is checked! :D

M23


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______Open Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
thawee

Makes sense,

I have noticed that once in a blue moon SetSelected will check the box for me which has caused a ton of confusion for me..

I have tried using the _GUICtrlTreeView_SetChecked, and you are correct it checks the box nicely; however, For whatever reason in the script I am writing it doesn't activate the checked / selected item, so that a secondary toolbar becomes activated therefore allowing me to manipulate the newly active toolbar :D

Is there a better way to manipulate tree lists ?

Thanks for your response,

Thawee

Share this post


Link to post
Share on other sites
Melba23

thawee,

I am not sure I understand. You have "selected" and "checked" an item and now you say it does not "activate"? :D

Can you post some code to illustrate the problem you are having. :oops:

M23


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______Open Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
thawee

Thanks for you quick response,

The reason I was asking these questions I was messing around with automating Avira Antivirus for funzzies. I am getting suck on the multi-level treelist &amp; toolbox selections.

I can Set the boxes in the treelist as selected / checked but it doesn't activate the selection, so the toolbox is active / usable.

Thanks

Thawee

Edited by thawee

Share this post


Link to post
Share on other sites
thawee

removed

Edited by thawee

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  

×