Page 1 of 1

xBrowse bmpsort

PostPosted: Tue Sep 23, 2008 11:09 am
by Detlef Hoefner
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

PostPosted: Fri Sep 26, 2008 9:39 am
by Antonio Linares
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

PostPosted: Fri Sep 26, 2008 9:40 am
by Antonio Linares
Detlef,

> I can not use cSortOrder or autosort

why ?

PostPosted: Fri Sep 26, 2008 9:42 am
by Antonio Linares
Detlef,

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

PostPosted: Fri Sep 26, 2008 11:33 am
by Detlef Hoefner
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