xbrowse codeblock after every action

xbrowse codeblock after every action

Postby frose » Mon Jun 20, 2011 2:14 pm

searching for a xbrowse codeblock, which triggers after every action, respectively changing the focus from one row to another one?

Still exist, or how can I define an UDF which will be triggered when focus changed to another row?
Windows 11 Pro 22H2 22621.1848
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: xbrowse codeblock after every action

Postby Marcelo Via Giglio » Mon Jun 20, 2011 7:00 pm

Hola,

did you try with bchange?

regards

Marcelo
Marcelo Via Giglio
 
Posts: 1051
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: xbrowse codeblock after every action

Postby James Bott » Mon Jun 20, 2011 11:43 pm

I concur with Marcelo, bChange seems to be what you need. The Change() method is called from the GoUp(), GoDown(), GoLeft() and GoRight() methods. If you don't want bChange triggered when moving to another column, then check the value of lRow, it will be .F. when moving to a new column and .T. when moving to a new row.

Code: Select all  Expand view
METHOD Change( lRow ) CLASS TXBrowse

   if ::bChange != nil

      DEFAULT lRow := .t.

      if lRow .or. ::lColChangeNotify
         Eval( ::bChange, Self, lRow )
      endif

   endif

return nil


Regards,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: xbrowse codeblock after every action

Postby frose » Tue Jun 21, 2011 6:59 am

Marcelo, James,

yes, that's what I'm looking for! Thank you so much :D
Windows 11 Pro 22H2 22621.1848
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: nageswaragunupudi and 34 guests