FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse bmpsort
Posts: 312
Joined: Sat Oct 08, 2005 09:12 AM
xBrowse bmpsort
Posted: Tue Sep 23, 2008 11:09 AM
Hi all,

how can i reach that the little triangle is shown beside a header if i do the sorting with oBrw:aCols[ n ]:bLClickHeader.

I can not use cSortOrder or autosort.

Thanks and regards,
Detlef
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
xBrowse bmpsort
Posted: Fri Sep 26, 2008 09:39 AM

Detlef,

Please review samples\TestXBr3.prg function RddBrwSelColsWin().

If you use the @ ..., ... XBROWSE command then use AUTOSORT clause.

Or if you call to SetRdd():
SetRDD( lAddColumns, lAutoSort, aFldNames )

Or you can modify a specific column:
oCol:cSortOrder = ...
indextag or oRs:fieldname or column number of array

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
xBrowse bmpsort
Posted: Fri Sep 26, 2008 09:40 AM

Detlef,

> I can not use cSortOrder or autosort

why ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
xBrowse bmpsort
Posted: Fri Sep 26, 2008 09:42 AM

Detlef,

In method PaintHeader() you can see that oBrw:cOrder is checked to paint those arrows

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 312
Joined: Sat Oct 08, 2005 09:12 AM
xBrowse bmpsort
Posted: Fri Sep 26, 2008 11:33 AM

Antonio,

thanks for your advices.
But using the codes from PaintHeader() is very complex.

I do as the following:
after clicking a column header i add a '*' to the header's text.

I can not use cSortOrder because the sorting is done by values which are different from those who are displayed.

Thanks anyhow,
Detlef

Continue the discussion