Changing an xBrowse column header.

Changing an xBrowse column header.

Postby HunterEC » Wed Sep 01, 2010 8:00 pm

Guys:

How can I change an xBrowse column header after the xBrowse has been created ? For example, when the user left clicks on the column header, the browse changes index order and I want to display some sort of column header indicator as to specify on which field order the xBrowse is displaying the records. Thank you.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Changing an xBrowse column header.

Postby nageswaragunupudi » Wed Sep 01, 2010 9:27 pm

XBrowse automatically shows an UpArrow or DownArrow on the column header that is sorted. That is the standard indication which column is sorted and whether sorted in ascending or descending order.

Normally it should not necessary for the programmer to do anything to show this indication.

In any case you can change the column header at runtime with this code:
oCol:cHeader := "New Name"
oBrw:Refresh()
Regards

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

Re: Changing an xBrowse column header.

Postby HunterEC » Thu Sep 02, 2010 6:09 am

Nageswaragunupudi:

My xBrowse does not show the arrows that you mentioned. What I'm doing wrong ? Thank you.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 124 guests