FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TXBrwColumn:oEditLbx
Posts: 218
Joined: Mon Feb 07, 2022 09:54 PM
TXBrwColumn:oEditLbx
Posted: Fri Feb 25, 2022 08:34 AM

Hi All,
I want to find out which event is triggered if an item of a xBrowseColumn is selected.
I tried 'bChange' but this is only called if I select a different item as before.

I need to know the selection even if it's the same element as before.

Thanks for any idea.

Posts: 218
Joined: Mon Feb 07, 2022 09:54 PM
Re: TXBrwColumn:oEditLbx
Posted: Mon Feb 28, 2022 10:42 AM
U#nfortunately I can't access oBrw:aCols[n]:oEditLbx.

Code (fw): Select all Collapse
WITH OBJECT oBrwTm:aCols[ 2 ]
      :oEditLbx:bLostFocus := {|| someFunc()}
   END

result of the code above is 'Class: 'NIL' has no property: BLOSTFOCUS'
I suppose this listbox is not yet existend when I want to ask it.

I'll be glad for any help.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: TXBrwColumn:oEditLbx
Posted: Wed Mar 02, 2022 07:31 AM
I tried 'bChange' but this is only called if I select a different item as before.


Code (fw): Select all Collapse
oCol:bOnChange := { |oColObj, uOldVal| yourfunc( oColObj,uOldVal)


This codeblock is called when the value of the cell is modified either by selecting an item in the listbox or by other means.

oCol:oEditListbox is temporarily created and destroyed during edit. Not available to the programmer.
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion