add a column on xbrowse and del Row

add a column on xbrowse and del Row

Postby Silvio.Falconi » Thu Jul 12, 2018 9: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 )

Image
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: 6772
Joined: Thu Oct 18, 2012 7:17 pm

Re: add a column on xbrowse and del Row

Postby Silvio.Falconi » Fri Jul 13, 2018 8: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)

Image

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 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: 6772
Joined: Thu Oct 18, 2012 7:17 pm

Re: add a column on xbrowse and del Row

Postby Silvio.Falconi » Fri Jul 13, 2018 8: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 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: 6772
Joined: Thu Oct 18, 2012 7:17 pm

Re: add a column on xbrowse and del Row

Postby Silvio.Falconi » 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 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: 6772
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 107 guests