- Code: Select all Expand view RUN
@ 0,0 LISTBOX oLbx FIELDS FSTOCK->ROLL_NO,FSTOCK->QCODE,FSTOCK->LOCATION, ;
str(FSTOCK->QUANTITY,7,2),FSTOCK->TEMP ;
HEADERS "Roll No","Product","Loc","Vol","Tag" SIZE 240,200 OF oWnd ;
FIELDSIZES 65,80,25,40,20 UPDATE
oLbx:SetFont(oFont2)
oLbx:blClicked := {|nRow,nCol,nKeyFlags| if(oLbx:nAtCol(nCol)=5,ProcessTap(oLbx,oSay6,oGet1,oGet2),nil)}
oLbx:lCellStyle := .T.
oLbx:bGoTop := {|| FSTOCK->(DbGoTop())}
oLbx:bGoBottom := {|| FSTOCK->(DbGoBottom())}
oLBx:bSkip := {|nRecs| FSTOCK->(DbSkipper(nRecs))}
oLbx:bLine := {|| {FSTOCK->Roll_No,;
FSTOCK->Qcode,;
FSTOCK->Location,;
str(FSTOCK->Quantity,7,2),;
FSTOCK->Temp}}
When the browse is displayed the Roll No of the first record is highlighted.
If I tap on the down button of the vertical scroll button nothing happens. If I tap on the second record's Roll No the scroll bar becomes active however if I pull the slider to the bottom the browse does not go to the last record.
This is the only browse behaving in this way.
Is there specific code I can use to force correct behaviour on this scrollbar?