XBROWSE AUTOSORT

XBROWSE AUTOSORT

Postby MdaSolution » Fri Apr 16, 2010 7:20 am

CAN I MODIFY THE BITMAPS ( ARROWS) on THE HEADER OF XBROWSE WHEN I USE AUTOSORT PARAMETER
WHERE I CAN MODIFY XBROWSE CLASS TO INSERT MINE BMPS ?
THANKS
FWH .. BC582.. xharbour
User avatar
MdaSolution
 
Posts: 401
Joined: Tue Jan 05, 2010 2:33 pm

Re: XBROWSE AUTOSORT

Postby nageswaragunupudi » Fri Apr 16, 2010 8:03 am

Code: Select all  Expand view
oBrw:aSortBmp := { { hBmpAsc, 0, nBmpWidth( hBmpAsc ), nBmpHeight( hBmpAsc ), nil, HasAlpha( hBmpAsc) }, ;
{ { hBmpDsc, 0, nBmpWidth( hBmpDsc ), nBmpHeight( hBmpDsc ), nil, HasAlpha( hBmpDsc ) } }
Regards

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

Re: XBROWSE AUTOSORT

Postby MdaSolution » Fri Apr 16, 2010 10:30 am

thanks ++

can you make an sample with

sort1.bmp arrow on
sort2.bmp arrow off
FWH .. BC582.. xharbour
User avatar
MdaSolution
 
Posts: 401
Joined: Tue Jan 05, 2010 2:33 pm

Re: XBROWSE AUTOSORT

Postby anserkk » Fri Apr 16, 2010 11:09 am

Code: Select all  Expand view
// Eg. to Load from Resource
hBmpAsc := LoadBitmap( GetResources(), cBmpResName )

// Eg. To Load from Disk file
hBmpDsc := ReadBitmap( 0, cBmpFileName )

...
...

@0,0 XBROWSE oBrw

...

oBrw:aSortBmp := { {  hBmpAsc, 0, nBmpWidth( hBmpAsc ), nBmpHeight(  hBmpAsc ), nil, HasAlpha( hBmpAsc)  }, ;
{ { hBmpDsc, 0, nBmpWidth( hBmpDsc ), nBmpHeight( hBmpDsc ), nil, HasAlpha( hBmpDsc ) } }

...
...

// Remove
DeleteObject( hBmpAsc )
DeleteObject( hBmpDsc )
 


Regards
Anser
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 51 guests