checkbox in browse

This forum is for eXpress++ general support.
Post Reply
Message
Author
Koverhage
Posts: 151
Joined: Mon Feb 01, 2010 8:45 am

checkbox in browse

#1 Post by Koverhage »

Hi,

i use this
DCBROWSECOL DATA {|x|x:=DC_GetColArray(OP_EINZUG,oBrowse), ;
IIF(x,BMP_CHECKED,BMP_UNCHECKED)} ;
PARENT oBrowse HEADER "Yes/No" WIDTH 1 ;
TYPE XBPCOL_TYPE_BITMAP ;
EVAL {|oB|oB:dataArea:lbClick := {|a,b,o|IIF(oBrowse:colPos=1, ;
(aLastschriften[nZaehler,OP_EINZUG]:=!aLastschriften[nZaehler,OP_EINZUG], ;
oBrowse:refreshCurrent()),nil)}}

But whta i must do, that it also selected/unselected with the space-bar ?
Klaus

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: checkbox in browse

#2 Post by rdonnay »

Try this:

DCBROWSECOL .. OBJECT oBrowseCol1

DCHOTKEY xbeK_SPACE ACTION {||PostAppEvent(xbeM_LbClick,{0,0},,oBrowseCol1:dataArea)}
The eXpress train is coming - and it has more cars.

Koverhage
Posts: 151
Joined: Mon Feb 01, 2010 8:45 am

Re: checkbox in browse

#3 Post by Koverhage »

That do what i want.
Thank you.
Klaus

Post Reply