When the selection in the listbox is moved away from the original value for whatever reason, clicking on any other cell assigns the new value. Clicking on other cell should result in cancellation of edit.
G. N. Rao.
Hyderabad, India
When the selection in the listbox is moved away from the original value for whatever reason, clicking on any other cell assigns the new value. Clicking on other cell should result in cancellation of edit.
case ::nEditType == EDIT_LISTBOX
Eval( ::bOnPostEdit, Self, xValue, ::oEditLbx:nLastKey )
if ::oEditLbx != nil .and. IsWindow( ::oEditLbx:hWnd )
::oEditLbx:End()
::oEditLbx := nil
endifMETHOD ShowBtnList( nKey ) CLASS TXBrwColumn
...
::oEditLbx:bLButtonUp := {|| ::oEditLbx:Change(), ::oEditLbx:nLastKey := VK_RETURN,;
::PostEdit( aBound[ nAt ], .t. ) }Carried out the changes. Tested both downloaded exe and exe built by me. With these changes the problems noticed till now are addressed.
Subject to further tests, it appears that both inline edit and listbox edits are working fairly well subect to (1) the valid blocks not popping up messages or dialogs and (2) click on button from listbox is not activating the button action.
I am trying to use the new xbrowse with changes for my regular code.
Normally when a user enters an invalid value, I popup a small help dialog with one of the browses to choose the value and stuff the same. Wish we can solve the problem for assigning values from the valid clause.
Nageswararao,
Thats already fixed. Please review mallorca.exe