xbrowse edit columns

Re: xbrowse edit columns

Postby jbrita » Fri Aug 16, 2019 3:15 am

Friends, how to do this with 2 buttons + -

REGARDS
jbrita
 
Posts: 487
Joined: Mon Jan 16, 2006 3:42 pm

Re: xbrowse edit columns

Postby jbrita » Sat Aug 17, 2019 3:55 pm

hello
jbrita
 
Posts: 487
Joined: Mon Jan 16, 2006 3:42 pm

Re: xbrowse edit columns

Postby Silvio.Falconi » Mon Aug 19, 2019 7:50 am

please search Rao's sample test
from 18.04:

Code: Select all  Expand view
 
WITH OBJECT oBrowse:aCols[ 4]
          :nWidth        := 100
          :nDataStrAlign := AL_CENTER
          :AddBitmap( { FW_BmpPlus(), FW_BmpMinus() } )

          // Right Button
         :nEditType     := EDIT_BUTTON
         :bEditBlock    := { |r,c,oCol|IIF(!oBrowse:nArrayAt = 1, oCol:Value + 1,) }
         :nBtnBmp       := 1
         :lBtnTransparent  := .t.

         // Left Button
           :bBmpData      := { |v,lSel| If( lSel, 2, 0 ) }
           :bBmpAction    := { |oCol|  IIF(!oBrowse:nArrayAt = 1,IIF( oCol:Value>0,oCol:VarPut( oCol:Value - 1 ),),) }
           :bOnChange := bCalcRow
           :lBmpTransparent := .T.
        END
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: 6867
Joined: Thu Oct 18, 2012 7:17 pm

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 128 guests