Editing a cell in dcbrowse

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
obelix
Posts: 48
Joined: Tue Dec 03, 2013 7:44 am
Location: Villingen-Schwenningen, Black Forest, Germany

Editing a cell in dcbrowse

#1 Post by obelix »

Hi everybody
I want to edit a cell, using @ 3,2 DCBROWSE oBrowse DATA cAlias SIZE wcol,wrow FONT feldfont ;
ITEMSELECTED {||dblclickvorein(),oBrowse:RefreshAll()} EDIT xbeK_CTRL_E MODE DCGUI_BROWSE_EDITDOWN Clicking into the cell I can change the content but after leaving the cell with ENTER , the old content will be restored and the
next cell down will be edited. I think the code MODE DCGUI_BROWSE_EDITDOWN isn't correct.

I want to start editing with CTRL_E and finish it by using ENTER or something else and the changed content should be saved.
I prefer to change the content directly instead of using DCHOTKEY xbeK_CTRL_E ACTION ....
quiet old but still young and unskilled in express++

User avatar
obelix
Posts: 48
Joined: Tue Dec 03, 2013 7:44 am
Location: Villingen-Schwenningen, Black Forest, Germany

Re: Editing a cell in dcbrowse

#2 Post by obelix »

Hi Roger,
what's wrong with my code?

Code: Select all

cAlias=alias()
   //ITEMSELECTED {||dblclickvorein(),oBrowse:RefreshAll()} ;
   //EDIT xbeK_CTRL_E MODE DCGUI_BROWSE_EDITEXIT ;
@ 3,2 DCBROWSE oBrowse DATA cAlias SIZE wcol,wrow FONT feldfont ;
   EDIT xbeBRW_ItemSelected MODE DCGUI_BROWSE_EDITACROSSDOWN ;
   DELETE xbeK_DEL ;
   INSERT xbeK_INS ;
   PRESENTATION DC_BrowPres()
even if I use the code of FUNCTION XSample_10in XDEMO for CELL-EDITING in a BROWSE, I can change the content, but when I exit with ENTER,
the changed content will not be saved.
the code behind the slashes is the call I would prefer for editing.
quiet old but still young and unskilled in express++

Post Reply