New FWH 13.06

New FWH 13.06

Postby Antonio Linares » Mon Jul 08, 2013 6:54 pm

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42093
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New FWH 13.06

Postby Mulyadi » Tue Jul 09, 2013 4:24 am

Mr Antonio...

Version 13.06 same as 13.05
xBrowse array with clausul AutoSort
Result: header colour is change.

xBrowse array without clausul AutoSort.
Result: header colour is normal like we define the colour.

Thx...
User avatar
Mulyadi
 
Posts: 82
Joined: Mon Apr 18, 2011 2:32 am

Re: New FWH 13.06

Postby Antonio Linares » Tue Jul 09, 2013 9:44 am

Mulyadi,

Did you already report this problem previously ? thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42093
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: New FWH 13.06

Postby nageswaragunupudi » Tue Jul 09, 2013 3:44 pm

Tested with the following code:
Code: Select all  Expand view

#include "fivewin.ch"
#include "xbrowse.ch"

function Main()

   local oDlg, oBrw, aData

   USE CUSTOMER NEW ALIAS CUST SHARED
   aData    := FW_DbfToArray()
   CLOSE CUST

   DEFINE DIALOG oDlg SIZE 600,200 PIXEL TITLE FWVERSION
   @ 10,10 XBROWSE oBrw SIZE -10,-10 PIXEL OF oDlg ;
      DATASOURCE aData AUTOCOLS ;
      CELL LINES NOBORDER  AUTOSORT

   WITH OBJECT oBrw
      :l2007         := .f.
      :bClrHeader    := { || { CLR_HRED, CLR_YELLOW } }
      :nRecSelColor  := nRGB( 231, 242, 255 )
      :CreateFromCode()
   END

   ACTIVATE DIALOG oDlg CENTERED

return nil
 


Result:

Image

If you are not getting this result, please let me see your code.
Regards

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

Re: New FWH 13.06

Postby Mulyadi » Wed Jul 10, 2013 1:23 am

Thanks Mr Nages.

with your sample code its work fine.
but in my code, the xBrowse structure not like that.

my code like this:
Code: Select all  Expand view
#include "fivewin.ch"
#include "xbrowse.ch"

function Main

  local oDlg, oBrw
  local aData    := MakeArray()

  DEFINE DIALOG oDlg SIZE 600,200 PIXEL TITLE FWVERSION

   @ 0,0 XBROWSE oBrw ;
         COLUMNS 5, 4, 2, 7, 9, 10 ;
         HEADERS "State", "City", "Last", "HireDate", "Age", "Salary" ;
         OF oDlg ARRAY aData ;
         AUTOSORT FOOTERS FASTEDIT LINES CELL

   WITH OBJECT oBrw

      *
      *  edit value in other column
      *

      WITH OBJECT oBrw:Salary
          :nFooterType      := AGGR_TOTAL
      END

      :bClrHeader       := {|| { CLR_WHITE, CLR_BLUE }}
      :MakeTotals()
      :CreateFromCode()
   END

   ACTIVATE DIALOG oDlg CENTERED

return nil

static function MakeArray()
  local aData
  USE CUSTOMER NEW ALIAS CUST SHARED
  aData := FW_DbfToArray()
  CLOSE CUST

return aData
 


Can you give me a description for the different..( me: ARRAY, you: DATASOURCE ) ...?

Thanks
User avatar
Mulyadi
 
Posts: 82
Joined: Mon Apr 18, 2011 2:32 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 108 guests