FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour XBrowse online editing
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
XBrowse online editing
Posted: Thu Dec 27, 2007 04:23 PM

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.

Regards



G. N. Rao.

Hyderabad, India
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
XBrowse online editing
Posted: Thu Dec 27, 2007 05:48 PM
Nageswararao,

The code change is:
      case ::nEditType == EDIT_LISTBOX
           Eval( ::bOnPostEdit, Self, xValue, ::oEditLbx:nLastKey )
           if ::oEditLbx != nil .and. IsWindow( ::oEditLbx:hWnd )
              ::oEditLbx:End()
              ::oEditLbx := nil
           endif
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
XBrowse online editing
Posted: Thu Dec 27, 2007 05:57 PM
Nageswararao,

> But I am not able to change the item with mouse.

Fixed. Required change:
METHOD ShowBtnList( nKey ) CLASS TXBrwColumn
...
   ::oEditLbx:bLButtonUp := {|| ::oEditLbx:Change(), ::oEditLbx:nLastKey := VK_RETURN,;
                                ::PostEdit( aBound[ nAt ], .t. ) }

A new mallorca.exe build:
http://www.hotshare.net/file/26316-6432727526.html
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
XBrowse online editing
Posted: Thu Dec 27, 2007 10:37 PM

Carried out the changes. Tested both downloaded exe and exe built by me. With these changes the problems noticed till now are addressed.

Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
XBrowse online editing
Posted: Thu Dec 27, 2007 10:42 PM

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.

Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
XBrowse online editing
Posted: Sat Dec 29, 2007 02:04 PM

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.

Regards



G. N. Rao.

Hyderabad, India
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
XBrowse online editing
Posted: Sat Dec 29, 2007 02:50 PM

Nageswararao,

Thats already fixed. Please review mallorca.exe

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion