xBrowse: How to detect when value in a SetCheck col changed?

xBrowse: How to detect when value in a SetCheck col changed?

Postby hua » Tue Jul 22, 2014 5:50 am

Hi all,
How to detect when a value in a SetCheck col is changed or toggled? I tried with oBrw:bChange and oCol:bEditValid with no success.

Marquee style is set to MARQSTYLE_DOTEDCELL and am browsing an array.

I'm using FWH11.8.

TIA
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1050
Joined: Fri Oct 28, 2005 2:27 am

Re: xBrowse: How to detect when value in a SetCheck col changed?

Postby nageswaragunupudi » Tue Jul 22, 2014 10:09 pm

oCol:bOnChange := { |oCol, uOldVal| MyFuncOnChange( oCol, uOldVal ) }
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10313
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: xBrowse: How to detect when value in a SetCheck col changed?

Postby hua » Wed Jul 23, 2014 3:00 am

Thanks Rao!

When user checked a row, I want to display a message at the top using a say control. That can now be accomplished using bOnChange.

However once user click somewhere else, in other words the col lost focus, I want to erase that message. Is there such a bLostFocus data?

TIA
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1050
Joined: Fri Oct 28, 2005 2:27 am

Re: xBrowse: How to detect when value in a SetCheck col changed?

Postby nageswaragunupudi » Wed Jul 23, 2014 3:45 am

You can use oBrw:bChange.

You must be alrady aware that oBrw:bChange is evaluated when row is changed.
If we set oBrw:lColChangeNotify := .t., then oBrw:bChange is called even when column is changed.

oBrw:lColChangeNotify := .t.
oBrw:bChange := { |oBrw, lRowChange| MyChangeFunc( oBrw, lRowChange ) }

In the MyChangeFunc(....) check the oBrw:SelectedCol() to know which column is selected.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10313
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: xBrowse: How to detect when value in a SetCheck col changed?

Postby hua » Wed Jul 23, 2014 4:11 am

Thank you so much Rao!
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1050
Joined: Fri Oct 28, 2005 2:27 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 54 guests