Page 1 of 1

using treeview

Posted: Wed Dec 11, 2024 9:38 am
by Silvio.Falconi
I made a tree with checkboxes

Image

when I click on first main option "Estratti" I wish the procedure select each submenu are on menu 1, so how make it ?

then To check wich option are checked I made

Code: Select all | Expand

 oTree:OnClick = { || CheckStatus( oTree, oTree:aItems, @atipic ) }
where I save on atipic all items but when I go to save on first colums save the logic (.t. or .f.) and on second column save the name of Main option

Code: Select all | Expand

function CheckStatus( oTree, aItems,aTipic )
   local n
   for n = 1 to Len( aItems )
      aadd(aTipic, {oTree:GetCheck( aItems[ n ] ),aItems[n]:cPrompt})
   next
     return nil
Image

So how I can save the name of each submenu ?

How I can assign on each submenu a number ? I must load a data info for each submenu checked and I not Know How make