FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse and bEditWhen
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
xBrowse and bEditWhen
Posted: Mon Feb 20, 2012 10:24 AM

Antonio ,

bEditWhen dosn't  work  with nEditType :=  EDIT_LISTBOX

Regards Maurizio

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse and bEditWhen
Posted: Wed Feb 22, 2012 05:04 AM

Fixed in version 12.02.
Thanks for pointing out.

Regards



G. N. Rao.

Hyderabad, India
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Re: xBrowse and bEditWhen
Posted: Fri Mar 02, 2012 08:42 AM
Hello Rao ,

I tried your fix
Code (fw): Select all Collapse
elseif oCol:nEditType == EDIT_LISTBOX   .and. oCol:lEditable

I can open the LISTBOX and the selection is not accepted , and it works .

I think it would be better to prevent entry into the LISTBOX and do not open the LISTBOX .

this is my proposal

Code (fw): Select all Collapse
METHOD ShowBtnList( nKey ) CLASS TXBrwColumn

   local aBound
   local xValue
   local hBrush
   local nAt, nRow, nCol, nWidth, nHeight, aColors, oFont
  
  if ::bEditWhen # nil 
     IF !   Eval( ::bEditWhen, Self )
        Return nil 
     ENDIF  
  endif


Regards MAurizio

Continue the discussion