Hi.
Is there a way to open an xbrowsed array with NO record selected?
Thank you,
Reinaldo.
Hi.
Is there a way to open an xbrowsed array with NO record selected?
Thank you,
Reinaldo.
Hi Reynaldo.
If I Understand...
One way to mimic what you ask, is putting the same xBrowse's background color to the selector rod.
Thus, the selector bar is not visible.
(But surely there is a designated register)
Eg:
For xBrowse's White background:
oBrw:bClrStd := {|| { nRGB( 0, 0, 0), nRGB(255,255,255) }}
oBrw:bClrSel := oBrw:bClrStd
oBrw:bClrSelFocus := oBrw:bClrStd
Regards.
Other way:
oBrw:nMarqueeStyle := 0
Francisco;
Thanks for your reply. If I understand correctly, I'm afraid this won't work. The problem is a bit more complicated. The xbrowse is displayed so that the user may pick multiple lines. They achieve this by clicking on the record while pressing cntrl. But the problem is that the first record is already selected. Unless the users unselects the record, it comes back on the ::aSelection data of the xbrowse. Since upgrading my fwh, my users are not happy about having to Un-select the first record before selecting the ones they really want selected.
So painting the first record on another color, will not remove it from aSelection.
nMarqueestyle =0, will not work, since you can not do multiple selections with value zero on nmarqueestyle.
With Regards,
Reinaldo.
I see now. But users can select the first line they want, by clicking without pressing ctrl, and then to do click on the next record while pressing ctrl. I know ... customer is always right.
On the other hand, I think it's interesting that you post. I'll do some tests, and if I get something positive, I'll let you know.
Regards.
Francisco;
Yes. You are correct. The user may click on any other line, and that removes the 1st record from aSelection.
But, most times my users don't want any record selected. My previous xbrowse does NOT autoselects a record when nMarqueeStyle = 5. It makes no sense to auto-select a row when you are showing a multiple-selection xbrowse.
Reinaldo.
reinaldocrespo wrote:Hi.
Is there a way to open an xbrowsed array with NO record selected?
Thank you,
Reinaldo.
ACTIVATE WINDOW/DIALOG ....... ON INIT ( oBrw:aSelected := {}, oBrw:Refresh(), oBrw:SetFocus() )ON INIT (oBrw:Select( 0 /* or 2 */ ):oBrw:Refresh() ) if ::nMarqueeStyle == MARQSTYLE_HIGHLROWMS
::Select(1)
endif