Blinking current row in xBrowse

Post Reply
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Blinking current row in xBrowse

Post by fraxzi »

Hello!

How to blink or make it blinking the xbrowse current row on ::nMarqueeStyle := MARQSTYLE_HIGHLROWRC :?:


Has any one with working code?

Thanks and regards,
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Rochinha
Posts: 309
Joined: Sun Jan 08, 2006 10:09 pm
Location: Brasil - Sao Paulo
Contact:

Post by Rochinha »

Friend,

For me its work with tWBrowse:

Code: Select all

...
   @ 0,0 LISTBOX oLbxP1 FIELDS "" HEADERS "" SIZE 200,nSplitH PIXEL OF oChildWnd
...
   DEFINE TIMER oCLITimer OF oWnd INTERVAL 300 ACTION Blinking( oLbxP1 )
   ACTIVATE TIMER oCLITimer

   ACTIVATE WINDOW oChildWnd MAXIMIZED
   return nil

Function Blinking( oBrw ) 
  oBrw:nClrNFBack := iif( oBrw:nClrNFBack==oBrow:nClrBackfocus, oBrow:nClrBackfocus, CLR_BLACK)
  oBrw:nClrNFFore := iif( oBrw:nClrNFFore==oBrow:nClrBackfocus, CLR_BLACK, oBrow:nClrBackfocus)
  oBrw:Refresh() 
  return .t.
...
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Post by fraxzi »

Hello Rochinha!


Finally! someone generously answer this question.

You are right! 8) the timer is the only way... changing the row's background color in iteration... I'm inspired to do it in xBrowse.


Thank you so much for the guide.

Regards,
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Rochinha
Posts: 309
Joined: Sun Jan 08, 2006 10:09 pm
Location: Brasil - Sao Paulo
Contact:

Post by Rochinha »

Good luck,

A little modification:

Code: Select all

Function Blinking( oBrw )
  if ! oBrw:lFocused
     oBrw:nClrNFBack := iif( oBrw:nClrNFBack==oBrw:nClrBackFocus,oBrw:nClrBackFocus,CLR_BLACK)
     oBrw:nClrNFFore := iif( oBrw:nClrNFFore==oBrw:nClrBackFocus,CLR_BLACK,oBrw:nClrBackFocus)
     oBrw:Refresh() 
  endif
  return .t.
Post Reply