FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Row highlighting in xBrowse multiselect.
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Row highlighting in xBrowse multiselect.
Posted: Mon May 12, 2014 09:31 AM
Guys:
When the following code is executed and the user types a value for an incremental search, the highlighted row remains the first one and not the one that has been found although the triangle to the left points to the correct record. Any clues on how to highlight the correct record ? Thank you.
Code (fw): Select all Collapse
   @ 10,10 XBROWSE oBrw OF oDlg;
      SIZE 205,223 PIXEL ;
      HEADERS { "", "Window Title" } ;
      ARRAY acArray AUTOCOLS AUTOSORT

   @ 250,10 SAY oBrw:oSeek PROMPT oBrw:cSeek SIZE 205,10 PIXEL OF oDlg ;
      COLOR CLR_BLACK, CLR_YELLOW

   SETKEY(VK_RETURN, {|| cVal := acArray[oBrw:nRowSel,1], oDlg:End()})

   oBrw:bClrSel := {|| {CLR_CYAN, CLR_GREEN}}

   WITH OBJECT oBrw
      :bClrSelFocus   := { || { CLR_WHITE, CLR_GREEN } }
      :nHeadStrAligns := AL_CENTER
      :nStretchCol    := STRETCHCOL_WIDEST
      :nMarqueeStyle  := MARQSTYLE_HIGHLROWMS
      :aCols[1]:lHide := .T.
      :lAllowSizings  := .F.
      :aCols[2]:SetOrder()

      END
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Row highlighting in xBrowse multiselect.
Posted: Mon May 12, 2014 02:40 PM

Maybe adding the UPDATE clause to the browse.

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: Row highlighting in xBrowse multiselect.
Posted: Mon May 12, 2014 06:52 PM

James:

Thank you for your help. The UPDATE clause didn't worked. Any other suggestions ? Thank you.

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Row highlighting in xBrowse multiselect.
Posted: Mon May 12, 2014 09:08 PM

Try refreshing the browse.

oBrw:refresh()

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion