xBrowse and bEditWhen

xBrowse and bEditWhen

Postby Maurizio » Mon Feb 20, 2012 10:24 am

Antonio ,

bEditWhen dosn't work with nEditType := EDIT_LISTBOX

Regards Maurizio
User avatar
Maurizio
 
Posts: 796
Joined: Mon Oct 10, 2005 1:29 pm

Re: xBrowse and bEditWhen

Postby nageswaragunupudi » Wed Feb 22, 2012 5:04 am

Fixed in version 12.02.
Thanks for pointing out.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10248
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: xBrowse and bEditWhen

Postby Maurizio » Fri Mar 02, 2012 8:42 am

Hello Rao ,

I tried your fix
Code: Select all  Expand view
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: Select all  Expand view
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
User avatar
Maurizio
 
Posts: 796
Joined: Mon Oct 10, 2005 1:29 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 43 guests