FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Hide/show group columns on line
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Hide/show group columns on line
Posted: Fri May 27, 2022 07:16 AM

Can I show or hide a group of columns of a xbrowse ?

sample :
@ nRow ,nCol CHECKBOX aChk[1] VAR ::lBa PROMPT ::aRuote[1] SIZE 100, 20 OF oGrS1 ;
ON CHANGE hidexbrowse( ::oLbx,::lBa)

Function hidexbrowse( ::oLbx,::lBa)
local i,oCol

do case
case ::lba = .t.
nInit := 2
nEnd:= 6
endcase

for i= nInit to nEnd
oCol := ::oLbx:aCols[ i ]
oCol:HIde()
next
::oLbx:refresh()
return nil

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 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

Continue the discussion