Question to XBROWSE 1810

Question to XBROWSE 1810

Postby byte-one » Tue Nov 27, 2018 12:33 pm

In the new version 1810 i see a dialog to input data if i use SetColsAsRows(). But i will handle as before! What to do to get the behavior as in 1801?
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: Question to XBROWSE 1810

Postby nageswaragunupudi » Tue Nov 27, 2018 1:40 pm

How were you invoking edit in your own way earlier?
By assigning a codeblock to bLDClickData or how?
Regards

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

Re: Question to XBROWSE 1810

Postby byte-one » Tue Nov 27, 2018 2:35 pm

I do so:
Code: Select all  Expand view
ADD COLUMN TO XBROWSE oList DATA aEin[oList:nArrayat,LG_ARR_POS_FELDER,LG_FELD_PERSON,LG_ARR_POS_SUCH] SIZE 200 ALIGN CENTER EDITABLE ON EDIT ;
        {|a,x|lg_stamm_such(x,@aPers,@aGer,@aKont,@aZu,1,oList:nArrayat)} HEADER "Mitarbeiter" ;...…
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: Question to XBROWSE 1810

Postby nageswaragunupudi » Thu Nov 29, 2018 6:36 pm

In the method Edit( nKey ) of TXBrwColumn please locate these lines of code:
Code: Select all  Expand view
  if !Empty( ::aRows )
      uValue      := CharRem( CRLF, ::cHeader )
      AEval( ::aRows, { |o| If( Empty( o:cHeader ), o:cHeader := "COL-" + LTRIM( Str( o:nCreationOrder ) ), nil ) }, 2 )
      AEval( ::aRows, { |o| If( o:lReadOnly, nil, uValue += "," + CharRem( CRLF, o:cHeader ) ) }, 2 )
      oRec  := TDataRow():New( ::oBrw, uValue, .f. )  //:Edit( nil, .f., StrTran( ::cHeader, CRLF, " " ) )
      oRec:oFont     := ::DataFont()
      oRec:oAnchor   := Self
      return oRec:Edit( nil, .f., StrTran( ::cHeader, CRLF, " " ) )
   endif
 

Comment out all these lines of code.
Regards

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

Re: Question to XBROWSE 1810

Postby byte-one » Thu Nov 29, 2018 9:23 pm

Thanks!
In the meantime i also found this lines and make a DATA to switch this lines on/off. But for accordance to older versions the code should be inactive for standard and switchable to your new edit!
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 100 guests

cron