TXBrwColumn:oEditLbx

TXBrwColumn:oEditLbx

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

Re: TXBrwColumn:oEditLbx

Postby Detlef » Mon Feb 28, 2022 10:42 am

U#nfortunately I can't access oBrw:aCols[n]:oEditLbx.

Code: Select all  Expand view  RUN
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
Detlef
 
Posts: 209
Joined: Mon Feb 07, 2022 9:54 pm

Re: TXBrwColumn:oEditLbx

Postby nageswaragunupudi » Wed Mar 02, 2022 7:31 am

I tried 'bChange' but this is only called if I select a different item as before.


Code: Select all  Expand view  RUN
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
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 87 guests