FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Changing an xBrowse column header.
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Changing an xBrowse column header.
Posted: Wed Sep 01, 2010 08: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.

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Changing an xBrowse column header.
Posted: Wed Sep 01, 2010 09: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
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: Changing an xBrowse column header.
Posted: Thu Sep 02, 2010 06:09 AM

Nageswaragunupudi:

My xBrowse does not show the arrows that you mentioned. What I'm doing wrong ? Thank you.

Continue the discussion