Marking browse row

This forum is for eXpress++ general support.
Post Reply
Message
Author
c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Marking browse row

#1 Post by c-tec »

Hello,
I have a customer that need to select records in the browser like MS standard, that means:
CTRL+left mouse = mark single record
SHIFT+left mouse = mark from previous selected record to actual record
For now I use itemmarked and an array of the last marked records, I shift the last marked record, that works so far. But how can I check in the itemmarked codeblock which key is actually pressed ? I need to check if CTRL or Shift is pressed when the record is marked.
Or is there a easier way in a browse handler function ?
regards
Rudolf


Code: Select all


aRecord := {0,0}
...
ITEMMARKED {||_dbfeditmark(oBrowse,getlist,@aRecord)}


static function _dbfeditmark(oBrowse,getlist,aRecord)
******************************************************************
if db->(recno()) # aRecord[1]
     aRecord[2] := aRecord[1]
     aRecord[1] := db->(recno())
endif
dcqdebug aRecord
return .t.

Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

skiman
Posts: 1199
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Marking browse row

#2 Post by skiman »

Rudolf,

See the tagging sample. It's all there.
Best regards,

Chris.
www.aboservice.be

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: Marking browse row

#3 Post by c-tec »

Hello,
thank you, have solved it with RBDOWN and appkeystate()
regards
Rudolf
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

Post Reply