Anomaly in TxBrowse Multiselect

Post Reply
User avatar
Rafael Clemente
Posts: 365
Joined: Sat Oct 08, 2005 7:59 pm
Location: Barcelona, Spain

Anomaly in TxBrowse Multiselect

Post by Rafael Clemente »

If I use a TxBrowse in Multiselect mode, upon startup it starts with the 1st record already selected. Is there any way to start with no registers selected (that is with Len(aSelected)= 0)

To see what I mean, go to \Samples\testxbrw.prg and modify line 486 as follows:

Code: Select all

 ACTIVATE WINDOW oChild ON INIT (oBrw:SetFocus() ,; 
                                   MsgInfo(Str(Len(oBrw:aSelected)))) 
Any suggestion?
Rafael
FWH 8.05 + Harbour
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post by nageswaragunupudi »

That has been the behaviour of xbrowse from the very biginning of this class.
Regards

G. N. Rao.
Hyderabad, India
User avatar
Rafael Clemente
Posts: 365
Joined: Sat Oct 08, 2005 7:59 pm
Location: Barcelona, Spain

Post by Rafael Clemente »

NageswaraRao:

I may be wrong, but I'd say that in older FWH versions, TxBrowse started with no records selected.

True, if you clicked any record, then you got stuck with at least one record selected. No way to deselect all, unless you used the SelectNone() method.

In my previous version of one of my programs, I used TxBrowse to select the records to print: You clicked the first and the last one and that was it. If you didn't click any, by default, then the whole table was printed. Whith FWH8.5 this behaviour seems to have changed.

Rafael
Post Reply