TXBrwColumn:oEditLbx

Post Reply
User avatar
Detlef
Posts: 209
Joined: Mon Feb 07, 2022 9:54 pm

TXBrwColumn:oEditLbx

Post 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.
User avatar
Detlef
Posts: 209
Joined: Mon Feb 07, 2022 9:54 pm

Re: TXBrwColumn:oEditLbx

Post 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.
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: TXBrwColumn:oEditLbx

Post 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.
Regards

G. N. Rao.
Hyderabad, India
Post Reply