Page 1 of 1

checkbox in browse

Posted: Thu Mar 06, 2014 11:52 pm
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 ?

Re: checkbox in browse

Posted: Sun Mar 09, 2014 7:24 pm
by rdonnay
Try this:

DCBROWSECOL .. OBJECT oBrowseCol1

DCHOTKEY xbeK_SPACE ACTION {||PostAppEvent(xbeM_LbClick,{0,0},,oBrowseCol1:dataArea)}

Re: checkbox in browse

Posted: Sun Mar 09, 2014 11:50 pm
by Koverhage
That do what i want.
Thank you.