Anomaly in TxBrowse Multiselect

Anomaly in TxBrowse Multiselect

Postby Rafael Clemente » Fri Jul 04, 2008 10:26 am

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  Expand view
ACTIVATE WINDOW oChild ON INIT (oBrw:SetFocus() ,;
                                   MsgInfo(Str(Len(oBrw:aSelected))))

Any suggestion?
Rafael
FWH 8.05 + Harbour
User avatar
Rafael Clemente
 
Posts: 365
Joined: Sat Oct 08, 2005 7:59 pm
Location: Barcelona, Spain

Postby nageswaragunupudi » Fri Jul 04, 2008 11:54 am

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

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

Postby Rafael Clemente » Fri Jul 04, 2008 12:14 pm

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
User avatar
Rafael Clemente
 
Posts: 365
Joined: Sat Oct 08, 2005 7:59 pm
Location: Barcelona, Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 98 guests