Search found 90 matches: beditblock

Return to advanced search

Re: XBROWSE fiirst steps

... ocol:beditvalue:={||odb2:itemid} oCol:nedittype:= {||if(ledit .and. LEN(ALLTRIM(odb1:stockid))>0.and.odb2:qty==0,EDIT_GET_BUTTON,0)} oCol:bEditBlock:={||goods2brw(odb2:itemid,,,odb2)} oCol:cEditPicture:="@!" oCol:bOnPostEdit := {|o, v, n| if( n != VK_ESCAPE .and. v != odb2:itemid,; ...
by ShumingWang
Thu Apr 18, 2013 5:38 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE fiirst steps
Replies: 6
Views: 2081

Re: xBrowse + TDolphin EDIT_GET_LISTBOX

... OBJECT oCol   :bEditValue      := { || oQry:preke }   :bEditWhen       := { || lEdt }   :nEditType       := EDIT_GET_BUTTON   :bEditBlock      := { | nRow, nCol, oCol | brw_arr( "Choose!", { "Model", "Description" }, aMod, oCol:Value ...
by Rimantas
Sun Mar 10, 2013 12:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse + TDolphin EDIT_GET_LISTBOX
Replies: 8
Views: 2072

Re: xBrowse + TDolphin EDIT_GET_LISTBOX

... OBJECT oCol   :bEditValue      := { || oQry:preke }   :bEditWhen       := { || lEdt }   :nEditType       := EDIT_GET_BUTTON   :bEditBlock      := { | nRow, nCol, oCol | brw_arr( "Choose!", { "Model", "Description" }, aMod, oCol:Value ...
by nageswaragunupudi
Sun Mar 10, 2013 12:20 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse + TDolphin EDIT_GET_LISTBOX
Replies: 8
Views: 2072

Re: xBrowse + TDolphin EDIT_GET_LISTBOX

...  := { || oQry:preke }   :nEditType       := if( lEdt, EDIT_GET_BUTTON, EDIT_NONE )   :bEditBlock      := { | nRow, nCol, oCol | uVal := brw_arr( "Choose!", { "Model", "Description" ...
by Rimantas
Sun Mar 10, 2013 8:39 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse + TDolphin EDIT_GET_LISTBOX
Replies: 8
Views: 2072

Re: xBrowse CRYPT

... ), nil ), Decrypt( FIELD->PASSWORD, cPW ) }  Now you can use either EDIT_GET or EDIT_BUTTON. In case of EDIT_BUTTON, bEditBlock should return the new password without encryption. In case edit is cancelled bEditBlock should return NIL.
by nageswaragunupudi
Sat Mar 09, 2013 5:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse CRYPT
Replies: 1
Views: 500

EDIT_BUTTON and EDIT_GET

I have on first column

WITH OBJECT oBrw:aCols[1]
:nBtnBmp := 1

:nEditType := EDIT_BUTTON
:bEditBlock :={||MsgInfo("selezione articolo")}

END

could also have the possibility to use EDIT_GET toghether with EDIT_BUTTON ?
by Silvio.Falconi
Fri Feb 08, 2013 6:38 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: EDIT_BUTTON and EDIT_GET
Replies: 1
Views: 407

Re: xBrowse EDIT_GET_BUTTON

bEditBlock should return the new value, if the value is changed or NIL if the value is not to be changed. This line: oBrwDeta:aCols[ nx ]:bEditBlock := { | r,c,o | o:value := PickPrd(o:value) } should be re-written as : oBrwDeta:aCols[ ...
by nageswaragunupudi
Mon Nov 26, 2012 1:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse EDIT_GET_BUTTON
Replies: 3
Views: 776

Re: xBrowse EDIT_GET_BUTTON

One more thing (i think it is a bug):

When the user enter the data directly with the keyboard in the editable column, the :bOnPostEdit is evaluated.
But, when clicking the small button and : bEditBlock is evaluated returning a value, the :bOnPostEdit is NOT evaluated.

Thank for you answer.

Ralph
by ralph
Tue Nov 20, 2012 7:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse EDIT_GET_BUTTON
Replies: 3
Views: 776

xBrowse EDIT_GET_BUTTON

...   nx := len(oBrwDeta:aCols)    oBrwDeta:aCols[ nx ]:nEditType   := EDIT_GET_BUTTON    oBrwDeta:aCols[ nx ]:bEditBlock  := { | r,c,o | o:value := PickPrd(o:value) }    oBrwDeta:aCols[ nx ]:bOnPostEdit := { | oCol, xVal, nKey ...
by ralph
Tue Nov 20, 2012 7:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse EDIT_GET_BUTTON
Replies: 3
Views: 776

xBrowse, editar columna con boton

...     nx := len(oBrwDeta:aCols)    oBrwDeta:aCols[ nx ]:nEditType   := EDIT_BUTTON    oBrwDeta:aCols[ nx ]:bEditBlock   := { | r, c, o | o:Value := PickPrd( o:Value ) }  Pero, cuando uso el modo de edicion EDIT_BUTTON no me permite escribir ...
by ralph
Thu Nov 01, 2012 10:19 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: xBrowse, editar columna con boton
Replies: 2
Views: 666

Re: Incremental Search

... := {|| { 16711680,0 } }, ; oBrw:Refresh() } oBrw:aCols[3]:nHeadBmpAlign := AL_LEFT oBrw:aCols[4]:nEditType := EDIT_BUTTON oBrw:aCols[4]:bEditBlock := { | r, c, o | EditNotes( r, c, o, EditData[10] ) } oBrw:bLClicked := { | nRow, nCol | LOAD_FIEDS() } oBrw:bChange := { || LOAD_FIEDS() ...
by ukoenig
Sat Oct 06, 2012 9:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Incremental Search
Replies: 8
Views: 3089

XBROWSE : nEditType := 3 , placing the dialog

oBrw:nEditType := 3 oBrw:bEditBlock := {||SomeDialog(oBrw)} Is it possible to place this dialog just below the cell to edit ? I tryed without succes : nRow := oBrw:oWnd:nTop + ( ( oBrw:nRowSel - 1 ) * oBrw:nRowHeight ) + oBrw:HeaderHeight() ...
by Franklin Demont
Fri Oct 05, 2012 3:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE : nEditType := 3 , placing the dialog
Replies: 1
Views: 514

Re: EDICION DE CELDA TIPO FACTURA EN XBROWSE CON ARRAY

... oBrw:aCols[1]:nEditType := EDIT_GET_BUTTON oBrw:aCols[1]:bEditValid := { | oGet, oCol | BuscarProd( oGet,oCol,oBrw,aDatos,oDlg1 ) } oBrw:aCols[1]:bEditBlock := {|| LeerCodigo(oDlg1,oBrw,aDatos),oBrw:GoRight(),oBrw:GoRight() } oBrw:aCols[1]:nDataStrAlign:= AL_LEFT oBrw:aCols[1]:nHeadStrAlign:= ...
by jbrita
Mon Jul 09, 2012 4:42 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: EDICION DE CELDA TIPO FACTURA EN XBROWSE CON ARRAY-SOLUCION
Replies: 3
Views: 2476

error in five DBU

... 980 ) Called from: C:\fwteam\samples\fivedbu.prg => MAIN( 58 ) ROW 552 original oBrw:aCols[ 2 ]:nEditType = EDIT_BUTTON oBrw:aCols[ 2 ]:bEditBlock = { || If( ! Empty( oBrw:aRow[ 2 ] ) .and. ; ! AllTrim( oBrw:aRow[ 2 ] ) == "/ /",; DToC( MsgDate( CtoD( oBrw:aRow[ 2 ] ) ) ),; ...
by mauri.menabue
Fri Jun 08, 2012 4:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: error in five DBU
Replies: 18
Views: 7290

Re: several questions about xBrowse

... ocol:beditvalue:={||odb2:itemid} oCol:nedittype:= {||if(::ledit .and. LEN(ALLTRIM(odb1:stockid))>0.and.odb2:qty==0,EDIT_GET_BUTTON,0)} oCol:bEditBlock:={||goods2brw(odb2:itemid,,,self,odb1:stockid)} // itemid,lvalid,unitid,lmulti oCol:cEditPicture:="@!" oCol:bOnPostEdit := {|o, ...
by ShumingWang
Mon Dec 19, 2011 2:58 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: several questions about xBrowse
Replies: 12
Views: 3419
PreviousNext

Return to advanced search