FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour add a column on xbrowse and del Row
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

add a column on xbrowse and del Row

Posted: Thu Jul 12, 2018 09:21 AM
How add a column on a xbrowse and insert a button sample "x" or bmp to erase that row ?

sample : ( I draw it )

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
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: add a column on xbrowse and del Row

Posted: Fri Jul 13, 2018 08:32 AM
Nages,
I made
@ 120, 02 XBROWSE oBrowse OF oDlg ;
COLUMNS 1, 2, 3, 4, 5 ;
HEADERS "ico","Descrizione servizio","Q.tà","Prezzo","Totale" ;
COLSIZES 10, 380, 80, 120,120 ;
ARRAY aData ;
SIZE 100,82 PIXEL NOBORDER


ADD COLUMN TO XBROWSE oBrowse


then
WITH OBJECT oBrowse

WITH OBJECT oBrowse:aCols[ 6]
:AddBmpFile(".\bitmaps\DLG_NO_MIN.bmp ")
:lBmpStretch := .F.
:lBmpTransparent := .T.
:nwidth := 10
:nEditType := EDIT_BUTTON
:bEditBlock := { ||DeleteRow(oBrowse,aGet) }
END
END


the problem : ( I not see the bitmap on row but only the button)



then I wish insert a button also on header with the action to delete all rows ( it is an array)
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
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: add a column on xbrowse and del Row

Posted: Fri Jul 13, 2018 08:35 AM

Sorry my mistake
:nBtnBmp := 1

How I can insert a button/btnbmp on the header of this column ? with action ?

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
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: add a column on xbrowse and del Row

Posted: Fri Jul 13, 2018 10:20 AM

Resolved thanks to Cristobal Navarro one of the most my Friends !!!!

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