XBROWSE RecordSelector & Record Number

XBROWSE RecordSelector & Record Number

Postby avista » Mon Oct 27, 2014 7:13 pm

Hi,

Can it be record number showed in recordselector like in Excel ?

Best regards,
User avatar
avista
 
Posts: 301
Joined: Fri Jun 01, 2007 9:07 am
Location: Macedonia

Re: XBROWSE RecordSelector & Record Number

Postby Rick Lipkin » Mon Oct 27, 2014 10:11 pm

Avista

Try it like this .. oCOl has to be defined in your variable list.

Rick Lipkin

Code: Select all  Expand view

// row numbers
ADD oCol to oLbxB AT 1 DATA oLbxB:KeyNo() HEADER 'Ln' size 23 //PICTURE '9999'
oLbxB:aCols[1]:nDataStrAlign := AL_LEFT
oLbxB:aCols[1]:nHeadStrAlign := AL_LEFT
 
User avatar
Rick Lipkin
 
Posts: 2616
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: XBROWSE RecordSelector & Record Number

Postby nageswaragunupudi » Tue Oct 28, 2014 3:19 pm

avista wrote:Hi,

Can it be record number showed in recordselector like in Excel ?

Best regards,

Right now it is not possible, but we do have plans to provide painting of user specified information on the RecordSelector.

Still we can show the same effect this way.

Insert column 1 to show oBrw:KeyNo or ( cAlias )->( recno() ) or whatever you choose.

ADD TO oBrw AT 1 DATA oBrw:KeyNo PICTURE "9999" HEADER "SlNo"

Then remove recordselector and paint the first column with record selector color.

oBrw:lRecordSelector := .f.
oBrw:oCol( "SlNo" ):bClrStd := { || CLR_BLACK, oBrw:nRecSelColor }

This gives a similar look and feel but still not as good as directl painting the number on the recordselector itself.
Regards

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

Re: XBROWSE RecordSelector & Record Number

Postby avista » Wed Oct 29, 2014 12:51 am

Rick, Rao,
Thanks for reply,

Still we can show the same effect this way.

Same efect ? Yes !

But i must change the source code where i control column values becouse column number is changed
(I have one column more)

( cAlias )->( recno() )

Is it good solution ? What if .dbf file is indexed ?

Regards,
User avatar
avista
 
Posts: 301
Joined: Fri Jun 01, 2007 9:07 am
Location: Macedonia

Re: XBROWSE RecordSelector & Record Number

Postby James Bott » Wed Oct 29, 2014 8:48 pm

The database could also be indexed and filtered.

I tried to come with some ideas but multi-user systems would be a problem. Ideally, you would need to read a location from the index itself but I don't know if this is possible. And if you added a filter that was not part of the index itself, then the location wouldn't be accurate.
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 79 guests