Page 1 of 1

TXBrwColumn:oEditLbx

Posted: Fri Feb 25, 2022 8:34 am
by Detlef
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.

Re: TXBrwColumn:oEditLbx

Posted: Mon Feb 28, 2022 10:42 am
by Detlef
U#nfortunately I can't access oBrw:aCols[n]:oEditLbx.

Code: Select all | Expand

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.

Re: TXBrwColumn:oEditLbx

Posted: Wed Mar 02, 2022 7:31 am
by nageswaragunupudi
I tried 'bChange' but this is only called if I select a different item as before.


Code: Select all | Expand

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.