Search found 90 matches: beditblock

Return to advanced search

Re: Xbrowse EDIT_GET_BUTTON overwrite manual data

You should not be using bOnChange at all.

bEditBlock should return the value to be assigned if the user selects else nil.

Example:

oCol:bEditBlock := { || PRD->VELD }
Remove bOnChange
by nageswaragunupudi
Fri Oct 28, 2016 12:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse EDIT_GET_BUTTON overwrite manual data
Replies: 2
Views: 618

Re: XBrowse 16.04 : Gets in Header Bar

... ::Value, ::BlankValue() ) end if ::obrw:lgetbar if ::obrw:nrowsel==-1 ::bOnPostEdit:={|o,v,n| if(n != VK_ESCAPE ,::cf1:=v,)} ::nEdittype:={||if(::beditblock<>nil,EDIT_GET_BUTTON,1)} if ::beditblock<>nil.and.GetCursorPos()[2]>::nwidth+ ::nDisplayCol-10 ::RunBtnAction() end elseif ...
by ShumingWang
Mon Sep 05, 2016 9:08 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBrowse 16.04 : Gets in Header Bar
Replies: 34
Views: 10021

xbrowse not refresh with bEditBlock

... the description column for this use the codeblock Helppre() ----------- oLbxp:aCols[ 5 ]:nEditType := EDIT_GET_BUTTON // // oLbxp:aCols[ 5 ]:bEditBlock := {||HelpcPres(oLbxp)} oLbxp:aCols[ 5 ]:bEditBlock := {||(if(Helppre(),VolHpre(.t.),VolHpre(.f.)),.t.)} --------------------------- Pressing ...
by gautxori
Sat Jul 02, 2016 9:28 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse refresh with new recordset
Replies: 7
Views: 1515

Re: Ejemplo sencillo de factura

... "TB" ; COLUMNS aBrowse CELL LINES FOOTERS NOBORDER FONT oFont WITH OBJECT oBrw WITH OBJECT oBrw:aCols[1] :nEditType := EDIT_BUTTON :bEditBlock := { | nRow, nCol, oCol, nKey | LookArt( nRow, nCol, oCol, nKey ) } END ... end oBrw:SetRDD() oBrw:CreateFromCode() oBrw:lFooter:=.t. oBrw:MakeTotals() ...
by Rosita
Tue Apr 12, 2016 11:49 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ejemplo sencillo de factura
Replies: 46
Views: 17809

Re: Ejemplo sencillo de factura

... "TB" ; COLUMNS aBrowse CELL LINES FOOTERS NOBORDER FONT oFont WITH OBJECT oBrw WITH OBJECT oBrw:aCols[1] :nEditType := EDIT_BUTTON :bEditBlock := { | nRow, nCol, oCol, nKey | LookArt( nRow, nCol, oCol, nKey ) } END ... end oBrw:SetRDD() oBrw:CreateFromCode() oBrw:lFooter:=.t. oBrw:MakeTotals() ...
by Silvio.Falconi
Tue Apr 12, 2016 9:49 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ejemplo sencillo de factura
Replies: 46
Views: 17809

Re: Listbox en un xbrowse

... que la instruccion no es la que necesito Gracias a todos Josep Armengol Hola Ing. Josep, prueba haciendo con este ejemplo: oBrw:aCols[4]:bEditBlock := {|| MovDetFac(oBrw1,oBrw2) } // llama a una funcion que abre un Dlg y muestra el Detalle A ver que tal. Saludos y buen dia.! Atte: Adrian ...
by ACC69
Tue Dec 29, 2015 6:22 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Listbox en un xbrowse
Replies: 19
Views: 4709

Re: SetBtnGet en xBrowse

Antonio

Lo que necesito es que el cuadro que muestra el bEditBlock poner una imagen con F2 y al pulsar F2 me ejecute un función que muestre otro browse donde pueda elegir un registro.

Gracias,

Saludos,

Adhemar
by acuellar
Fri Nov 06, 2015 1:03 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: SetBtnGet en xBrowse
Replies: 12
Views: 2488

SetBtnGet en xBrowse

Amigos

El SetBrnGet es de TSBrowse, como es en xBrowse?

Que sirve para poder pulsar una tecla asignada para realizar una acción cuando estamos usando bEditBlock, además permite colocar una imagen

Gracias por la ayuda.

Saludos,

Adhemar
by acuellar
Thu Nov 05, 2015 6:42 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: SetBtnGet en xBrowse
Replies: 12
Views: 2488

xBrowse's bEditBlock

oBrw:aCols[ COL_PC ]:bEditBlock := {|row, col, oCol| picklist("profit", "cntr", self, LN_CNTR) }oBrw:aCols[ COL_PC ]:bEditValid := {|oGet, oCol| IsValidPC(oGet, self) }  ...
by hua
Thu Oct 01, 2015 10:32 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse's bEditBlock
Replies: 0
Views: 448

Re: xbrowse MakeTotals()

... leaf for column "AmtPaid". Notice when clicking on the button of a branch cell of the tree it works as expected -that is, as coded on bEditBlock. When clicking on a leaf, the xbrowse breaks. If I compile with fwh 2012 it all works perfectly. If I compile with fwh 2014 it breaks. Notice ...
by reinaldocrespo
Fri Mar 27, 2015 11:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse MakeTotals()
Replies: 6
Views: 1680

New FTDN November 2014 (FWH 14.11)

... http://forums.fivetechsupport.com/viewtopic.php?p=155418#p155418 * New: xBrowse: New column data lRunBtnAction class TXBrwColumn. When oCol:bEditBlock or oCol:aEditListTxt is not empty and oCol:bEditValid sets oCol:lRunBtnAction to .T. and exits, the bEditBlock / Listbox is executed immediately ...
by Antonio Linares
Sun Nov 30, 2014 7:48 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN November 2014 (FWH 14.11)
Replies: 5
Views: 2588

Re: XBROWSE exclude or control ARROW keys in edit mode

... the following code:    if oEditGet != nil .and. !oEditGet:lValidating      if oCol:lRunBtnAction == .t. .and. ;         ( ! Empty( oCol:bEditBlock ) .or. ! Empty( oCol:aEditListTxt ) )            oCol:lRunBtnAction := nil         oCol:oEditGet:End()         oCol:oEditGet ...
by nageswaragunupudi
Sat Nov 29, 2014 7:38 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE exclude or control ARROW keys in edit mode
Replies: 13
Views: 5331

Re: XBROWSE exclude or control ARROW keys in edit mode

... "Age", "First", "Last" ;      CELL LINES FASTEDIT NOBORDER   oBrw:Age:nEditType     := EDIT_BUTTON   oBrw:Age:bEditBlock    := { |nRow,nCol,oCol,nKey| ChooseValue( oCol:Value ) }   oBrw:CreateFromCode()   ACTIVATE DIALOG oDlg CENTEREDreturn ...
by nageswaragunupudi
Mon Nov 24, 2014 4:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE exclude or control ARROW keys in edit mode
Replies: 13
Views: 5331

Re: Memoedit

... field. XBrowse automatically provides edit of RTF memps, if you set oCol:nEditType := EDIT_BUTTON for a memofield and you do not have to provide bEditBlock. So far all of my work has been pure text with Memoedit( ) but my clients think it would be good to have highlighted text. Good Idea. Actually ...
by nageswaragunupudi
Fri Nov 22, 2013 6:31 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Memoedit
Replies: 29
Views: 6424

Re: XBrowse - EDIT_GET_LISTBOX

Use oCol:nEditType := EDIT_BUTTON

You need to specify oCol:bEditBlock := { |nRow,nCol,oCol,nKey| MyEditFunc( nRow, nCol, oCol, nKey )

In this function you can browse the other table.
If selected return the value to be written in the browsed table.
If not selected you should return NIL
by nageswaragunupudi
Sun Sep 15, 2013 5:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBrowse - EDIT_GET_LISTBOX
Replies: 2
Views: 676
PreviousNext

Return to advanced search