xBrowse bmpsort

xBrowse bmpsort

Postby Detlef Hoefner » 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
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany

Postby Antonio Linares » Fri Sep 26, 2008 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Fri Sep 26, 2008 9:40 am

Detlef,

> I can not use cSortOrder or autosort

why ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Fri Sep 26, 2008 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Detlef Hoefner » 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
User avatar
Detlef Hoefner
 
Posts: 312
Joined: Sat Oct 08, 2005 9:12 am
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

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