move the bitmap of the xbrowse sort

move the bitmap of the xbrowse sort

Postby Silvio.Falconi » Wed Mar 08, 2023 9:28 am

Image
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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: move the bitmap of the xbrowse sort

Postby nageswaragunupudi » Sun Mar 19, 2023 7:18 am

Please try
Code: Select all  Expand view
oBrw:SetSortBmp( { "SOR_TUP","SOR_TDW" } )
 
Regards

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

Re: move the bitmap of the xbrowse sort

Postby Silvio.Falconi » Sun Mar 19, 2023 9:34 am

nageswaragunupudi wrote:Please try
Code: Select all  Expand view
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: Select all  Expand view

          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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

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