FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour move the bitmap of the xbrowse sort
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
move the bitmap of the xbrowse sort
Posted: Wed Mar 08, 2023 09:28 AM

I have this bitmap on Header to make the sort of the column of Xbrowse
Ho I can to move the bitmap on the left before of the name of the column ?

I make only

WITH OBJECT oBrw
:AddBitmap( { "SOR_TUP","SOR_TDW" } )
:lHScroll := .f.
:CreateFromCode()
END
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: move the bitmap of the xbrowse sort
Posted: Sun Mar 19, 2023 07:18 AM
Please try
Code (fw): Select all Collapse
oBrw:SetSortBmp( { "SOR_TUP","SOR_TDW" } )
Regards



G. N. Rao.

Hyderabad, India
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: move the bitmap of the xbrowse sort
Posted: Sun Mar 19, 2023 09:34 AM
nageswaragunupudi wrote:Please try
Code (fw): Select all Collapse
oBrw:SetSortBmp( { "SOR_TUP","SOR_TDW" } )
Error description: Error BASE/1132 Bound error: array access
Args:
[ 1] = A {} length: 0
[ 2] = N 1

Stack Calls
===========
Called from: .\source\classes\XBROWSE.PRG => TXBRWCOLUMN:PAINTBMPANDTEXT( 13879 )
Called from: .\source\classes\XBROWSE.PRG => TXBRWCOLUMN:PAINTHEADER( 14044 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:PAINTHEADER( 2825 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:PAINT( 2350 )



my config
Code (fw): Select all Collapse
          WITH OBJECT oBrw
             :AddBitmap( { "SOR_TUP","SOR_TDW" } )

            :lHScroll  := .f.
            :SetMultiSelectCol()


            //---
            :lIncrFilter      := .t.
            :bOnSort          := { |b,oCol| oBrw:Seek( "" ), ;
                                   oBrw:cFilterFld := oCol:cExpr, ;
                                   oBrw:SetFocus() }
            :oSeek := oGet
            //----
            :CreateFromCode()
         END

          oBrw:SetSortBmp( { "SOR_TUP","SOR_TDW" } )

          oBrw:RestoreState( cState )
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion