Moderators Melba23 Posted January 19, 2012 Moderators Posted January 19, 2012 atzoref,Please post some code that runs - posting just a few snippets means I have to write a lot of additional code just to see what is going on. Paste everything in the script you are using. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
atzoref Posted January 19, 2012 Author Posted January 19, 2012 But it too complex, because I use some scripts together It will be OK to upload the all directory?
Moderators Melba23 Posted January 19, 2012 Moderators Posted January 19, 2012 aztoref, If the script is that big I am probably not going to be able to debug it as it will take too long to work out what is going on, but you can try if you want to. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
atzoref Posted January 22, 2012 Author Posted January 22, 2012 Finally it works with your script (it was my false) - Thanks 2 questions: 1) how can I mark a parent checkbox in gray (with "v") if not all its childs are checked? 2) I create an array for this thing (for example [20][2]), and I have now for examplejust 8 items. Why the rest of the array (from [8][0] to [20][0]) is filling by the first item's handle?
atzoref Posted January 31, 2012 Author Posted January 31, 2012 (edited) I think I understand why number 2 happens (tell me if I right) All the rest cells of the array are automaticlly filled with zeros so if I do a function of treeview, it get the $Iitem as "0". So it relate to the main Treeview Item Handle. Right? If yes, How can I put fake parameters to all array cells if it is 2D array for example: [20][2] ? Edited January 31, 2012 by atzoref
Anouar Posted March 10, 2012 Posted March 10, 2012 If you are interested here you go: Func _TreeViewRemoveCheckbox($hWnd, $hItem) $hItem = GUICtrlGetHandle($hItem) Local $Struct = DllStructCreate('uint;uint;uint;uint;ptr;int;int;int;int;uint;int') DllStructSetData($Struct, 1, 0x8) DllStructSetData($Struct, 2, $hItem) DllStructSetData($Struct, 3, 0) DllStructSetData($Struct, 4, 0xF000) GUICtrlSendMsg($hWnd, 0x110D, 0, DllStructGetPtr($Struct)) EndFunc Hi D4RKON3, It's really what I'm looking for but still the problem of having the box checked and hided at the same time. Also I have notice that if I use both your function _TreeViewRemoveCheckbox() to disable the checkbox and GUICtrlSetState(-1, $GUI_CHECKED) to check the box, they are overwritten each other which means only one sate can be set either disabling or checking the box. Also, for the function that you have created _TreeViewRemoveCheckbox() could you please refer me from where did you get it and which parameter of the structure "$Struct" will disable the checkbox Thanks, Anouar
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now