Blinking current row in xBrowse

Blinking current row in xBrowse

Postby fraxzi » Fri Jun 06, 2008 2:20 pm

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
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Postby Rochinha » Sun Jun 08, 2008 10:35 pm

Friend,

For me its work with tWBrowse:
Code: Select all  Expand view
...
   @ 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.
...
Rochinha
 
Posts: 310
Joined: Sun Jan 08, 2006 10:09 pm
Location: Brasil - Sao Paulo

Postby fraxzi » Mon Jun 09, 2008 2:20 am

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
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Postby Rochinha » Mon Jun 09, 2008 2:36 am

Good luck,

A little modification:
Code: Select all  Expand view
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.
Rochinha
 
Posts: 310
Joined: Sun Jan 08, 2006 10:09 pm
Location: Brasil - Sao Paulo


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 66 guests

cron