using treeview

using treeview

Postby Silvio.Falconi » Wed Dec 11, 2024 9:38 am

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 view  RUN
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 view  RUN
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
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7090
Joined: Thu Oct 18, 2012 7:17 pm

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 66 guests