Search found 94 matches: beditblock

Return to advanced search

Re: Possible to CALCULATE a listbox-height ?

Mr. Rao, I will post the complete solution it is the way I'm doing it using : :bEditBlock := { | nRow, nCol, oCol , nKey | ; FUNCTION MYCELLDLG( oBrw, nRow, nCol, oCol , nKey, aItems, aImages, nImgHeight, oListFont, nColor ) .... .... ON INIT ( some calculations.... ...
by ukoenig
Sun Apr 28, 2019 6:01 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Possible to CALCULATE a listbox-height ?
Replies: 9
Views: 1084

Re: xbrowse listbox

... MyCellDlg( .. that will calculate the needed overall-size in relation to the defined items. WITH OBJECT :aCols[ 3 ] :nEditType := EDIT_BUTTON :bEditBlock := { | nRow, nCol, oCol, nKey | Retvalue := MyCellDlg( oBrw, nRow, nCol, oCol, nKey ), ; IIF( Retvalue <> NIL, ( oCust:City := Retvalue, ...
by ukoenig
Mon Apr 22, 2019 4:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse listbox
Replies: 5
Views: 771

Re: xbrowse edit columns

... la columna y termina normal. /* WITH OBJECT aBrw:aCols[ 1 ] :addbmpfile( op:bmp16+"eye.bmp" ) :nBtnBmp := 1 :nEditType := EDIT_BUTTON :bEditBlock := {|| VerItems( cCodigo,cQry:tipo,cQry:ord_comp )} :lBtnTransparent := .t. :lBmpStretch := .t. END */ he tenido que solucionarlo usando ...
by CARLOS ATUNCAR
Sat Sep 15, 2018 2:46 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse edit columns
Replies: 17
Views: 4566

Re: add a column on xbrowse and del Row

... 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) https://s8.postimg.cc/5dk2oja7p/image.png ...
by Silvio.Falconi
Fri Jul 13, 2018 8:32 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: add a column on xbrowse and del Row
Replies: 3
Views: 725

Re: WHEN en xBrowse

Estimados Lo de bEditBlock lo solucioné pasando la base a un Array, sólo me falta condicionar las columnas. Gracias Saludos... ya probastes :bEditWhen := {|| !EMPTY( aItems[oBrw:nArrayAt, 2] ) }, gracias... :shock:    WITH OBJECT ...
by joseluisysturiz
Thu Jun 14, 2018 3:34 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: WHEN en xBrowse
Replies: 4
Views: 830

Re: WHEN en xBrowse

Estimados

Lo de bEditBlock lo solucioné pasando la base a un Array,

sólo me falta condicionar las columnas.

Gracias
by acuellar
Thu Jun 14, 2018 1:08 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: WHEN en xBrowse
Replies: 4
Views: 830

WHEN en xBrowse

... {|o, v, n| Nuevo->haber:=v }      oCol:nFooterType := AGGR_SUM   Aparte rengo un problema también en xBrowse Con bEditBlock Habilitando la pulsación de una tecla en éste caso F2     oCol:=oBrw1:AddCol()      oCol:cEditPicture   ...
by acuellar
Wed Jun 13, 2018 8:38 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: WHEN en xBrowse
Replies: 4
Views: 830

Re: xbrowse edit columns

... OBJECT oBrw:aCols[ 2 ]      :nEditType     := EDIT_BUTTON      :AddResource( "OPEN" )      :nBtnBmp       := 1      :bEditBlock    := { || test()}      :beditwhen    := { || oBrw:keyno <> 1 }   END   oBrw:CreateFromCode()  ...
by Silvio.Falconi
Mon May 14, 2018 12:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse edit columns
Replies: 17
Views: 4566

Re: xbrowse edit columns

I tried also with

:nEditType := EDIT_BUTTON
:bEditBlock := { |o|Msginfo("") }
:bEditWhen := { || oBrw:nArrayAt<>1 }

I wish when on first line of the browse thefinal user cannot edit the cell

the user can edit only from second line
by Silvio.Falconi
Mon May 14, 2018 8:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse edit columns
Replies: 17
Views: 4566

Re: xbrowse edit columns

... :nBtnBmp := 1 :nwidth := 60 :nDataStrAlign := AL_CENTER :nHeadStrAlign := AL_CENTER :nEditType := EDIT_BUTTON :bEditBlock := { ||RES->QUANTITY++ } :lBtnTransparent := .t. :bEditWhen := { || oBrw:BookMark == 1 } END not run it add the quantity also the record ...
by Silvio.Falconi
Mon May 14, 2018 7:11 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse edit columns
Replies: 17
Views: 4566

Re: Edit a xbrowse

Your changes are correct. It should work. Anyway please try this new function XBrDatePicker( oBrw:oCol ) Usage: oCol:bEditBlock := { |r,c,o,k| XbrDatePick( o ) } #include "fivewin.ch"static dDate, dBOM, dOffSetstatic nMonth, cMonth, nYearstatic oBrw, oDate//----------------------------------------------------------------------------//function ...
by nageswaragunupudi
Thu May 10, 2018 8:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Edit a xbrowse
Replies: 4
Views: 1066

Re: buttons and datepick on xbrowse

... := {| oCol, xVal, nKey | IIf( nKey == VK_RETURN,(aParcelasModalidade[oBrowse:nArrayAt,3] := xVal, oBrowse:Refresh()),) } oBrowse:aCols[2]:bEditBlock := {|r,c| IIf(!Empty(aParcelasModalidade[oBrowse:nArrayAt,1]), aParcelasModalidade[oBrowse:nArrayAt,3] := Calend(aParcelasModalidade[oBrowse:nArrayAt,3], ...
by MGA
Wed May 09, 2018 10:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: buttons and datepick on xbrowse
Replies: 14
Views: 3291

Re: buttons and datepick on xbrowse

... := 16 oBrwcp:aCols[10]:nBtnWidth := 12 oBrwcp:aCols[10]:nEditType := EDIT_GET_BUTTON oBrwcp:aCols[10]:bStrData := {|| ''} oBrwcp:aCols[10]:bEditBlock := {|| Produto_Bonificar_Menos( oBrwcp, aHistoricoComprasProdutos ), NIL} oBrwcp:aCols[10]:bEditWhen := {|| .f. } oBrwcp:AddCol() oBrwcp:aCols[11]:nDataStrAlign ...
by MGA
Wed May 09, 2018 1:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: buttons and datepick on xbrowse
Replies: 14
Views: 3291

xBrowse - ToolTip em BOTÃO

... := AL_CENTER oBrwb:aCols[1 ]:cHeader := 'Venda' oBrwb:aCols[1 ]:cBtnCaption := '$' oBrwb:aCols[1 ]:nEditType := EDIT_GET_BUTTON oBrwb:aCols[1 ]:bEditBlock := {|| oBrwb:SelectCol(1), NIL } //ISSO NÃO FUNCIONA :cry: oBrwb:aCols[1 ]:oBtnList:cToolTip := 'Teste'
by MGA
Wed Nov 01, 2017 4:53 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: xBrowse - ToolTip em BOTÃO
Replies: 4
Views: 825

Re: Xbrowse : use bEditvalid, bEditblock of bEditvalue

Found it

oCol:bOnChange := { |oCol, uOldVal| OnColChange( oCol, uOldVal ) }
by Marc Venken
Wed Oct 18, 2017 7:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse : use bEditvalid, bEditblock of bEditvalue (SOLVED)
Replies: 1
Views: 548
PreviousNext

Return to advanced search