Fastedit in xBrowse is not working

Fastedit in xBrowse is not working

Postby ukservice » Wed Jul 06, 2011 1:35 pm

Hello,

In this sample, I press enter o double click but does not edit.

Code: Select all  Expand view
#include "FiveWin.Ch"
#include "ord.ch"
#include "xbrowse.ch"

REQUEST DBFCDX

//----------------------------------------------------------------------------//

function Main()

   local oWnd, oBrw

   USE CUSTOMER NEW  ALIAS CUSTOMER
   GO TOP

   cAlias := Alias()


   DEFINE WINDOW oWnd

   @ 0,0 XBROWSE oBrw OF oWnd AUTOCOLS ALIAS "CUSTOMER" CELL LINES  FASTEDIT


   oBrw:lFastEdit := .t.

   oBrw:SetRDD()
   oBrw:CreateFromCode()



   oWnd:oClient   := oBrw



   ACTIVATE WINDOW oWnd MAXIMIZED
   DbCloseAll()

return  nil

//----------------------------------------------------------------------------//
 



Any clue?. Thank you.
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
User avatar
ukservice
 
Posts: 417
Joined: Tue Feb 23, 2010 3:09 pm
Location: John

Re: Fastedit in xBrowse is not working

Postby Daniel Garcia-Gil » Wed Jul 06, 2011 1:43 pm

Hello

you should set the editable columns
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: Fastedit in xBrowse is not working

Postby ukservice » Wed Jul 06, 2011 1:51 pm

All columns.

How do I set that?.

Thank you.
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
User avatar
ukservice
 
Posts: 417
Joined: Tue Feb 23, 2010 3:09 pm
Location: John

Re: Fastedit in xBrowse is not working

Postby nageswaragunupudi » Wed Jul 06, 2011 3:03 pm

Code: Select all  Expand view

   @ 0,0 XBROWSE oBrw OF oWnd AUTOCOLS ALIAS "CUSTOMER" CELL LINES  FASTEDIT

   oBrw:nEditTypes := EDIT_GET  // insert this line
//   oBrw:lFastEdit := .t.              // remove, because it is already set
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Fastedit in xBrowse is not working

Postby ukservice » Wed Jul 06, 2011 5:44 pm

Thank you.

It works perfect.
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
User avatar
ukservice
 
Posts: 417
Joined: Tue Feb 23, 2010 3:09 pm
Location: John


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 42 guests